Hello Everyone,
I have made a BMP in Fireworks and have tried to create a splash screen for navision. I am reading the file directly as a BLOB into the Picture table, then displaying into a picture box.
I have tried both 8bit and 24bit BMP's. They look fine in fireworks and in windows picture viewer, but when I display them in Navision they look grainy and of very poor quality.
Is this a weakness of Navision interfacing with the GDI or what?
Thanks in advance for any tips, as it stands it is almost worthless to do a splash screen if you cannot go beyond this quality.
#-o
No one loves you like the one who created you...0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
http://www.mibuso.com/dlinfo.asp?FileID=573
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
Thanks for the responses.
The download you linked was great Waldo, but unfortunatly I don't have the ability to install this on every client machine.
So I am back to trying to get a decent looking picture in Navision...
The image size is 8.1 cm wide and 7.1 cm high. This is the equivalent of the size of the picturebox in Navision which records somewhere around 8122 and 7143 100/mm i.e. 81mm or 8.1cm.
The resolution is 128 pixels/inch.
I tried both 8bit and 24bit color depths. They looked similarly poor.
Any clue as to what values Navision is expecting here?
Thanks!
No one loves you like the one who created you...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Basically everyone thought it was a problem with Navision resizing the bmp, as it turns out, this was not the case.
The picture box on the form was exactly 8.14cm Wide by 7.15cm High (reported in the properties tab of Navision). The image I created were those exact dimensions.
Basically if I reduced the size of the image and tried to import, it showed a smaller image in the picture box, it did not expand it to fill the picturebox.
However I think the problem was this, my default resolution was 128 pixels per inch or around 50pix per centimeter. When I increased the resolution to 256 pixels per inch, it expanded the size of the image to around 800x700. When I then imported this file into Navision, it resized perfectly to the picturebox, and the quality was much improved.
So the problem was not with the size of the bitmap, but the resolution.
I would suggest a resolution of at least 256 or 512 for high quality BMP's in Navision.
No one loves you like the one who created you...
Just some theory for others about bitmaps, resolutions and resizing.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
What happens if the image is moved to another display with a different DPI such as 72?
I think I exported it with Bi Cubic filtering, would Bi Linear have been any better?
Thanks again Kine!
No one loves you like the one who created you...
How to find out the pixel size of the target region:
Add black rectangle on the form in same size and position as you Image control. Run the form, make screenshot (for example with SnagIt), check the pixel size of the black rectangle in the bitmap. This is pixel size for your bitmap.
How to find out the DPI:
Set the DPI of you bitmap to 72. Import bitmap, run the form, if the bitmap don't fill whole region, use smaller DPI, if no whole bitmap is displayed, use bigger DPI. I assume that 72 will be the target DPI... (if you are not using Windows display setting for bigger fonts in applications).
Windows is using DPI just for recalculation of pixels into centimeters or inches (for example when displaying some ruler), but NAV is displaying the forms still in same size (it means when display has another DPI, the form will be smaller/bigger on the screen, but still same size in pixels)
No, Bicubic is better than Bi linear because bicubic is calculating new value from pixels neighbouring on both axis (2D). Bilinear is calculating the value just in one direction (1D). Trilinear is in 3D (games etc.).
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
No one loves you like the one who created you...