Again Randy, if you setup the control properly to match the dimensions
of the original image and set the SizeMode prop correctly, the issues
you describe will not appear. Unless your current Graphics adapter
settings are below 24 bit, Access 97 will display the image exactly the
same as in any other Office or Paint program.
#1
If you load a BMP or DIB Image, the Image control's PictureData prop
will contain a DIB. Access paints this directly onto the Form. Since the
DIB contains 8 bit RGB data, and if your current Graphics adapter
settings are set to 24bits( 8 bits for each RGB value) or higher, there
will be an exact representation of the original Image painted onto the
Form.
#2
For all other Image formats, the Image control's PictureData prop will
contain an Enhanced Metafile(or a WMF when loading WMF's). This EMF is
merely a wrapper for again, a DIB. All the rest of the issues for #1 now
apply.
There are some side issues as well that have to do with whether Access
uses its internal Image graphics filters of the standard Office Graphics
filters for certain image file formats. You can find further
documentation in the Image FAQ on my site.
The API call to resize the contents of an Image control are far better
in A97 for images that end up being stored as EMF's over DIB's. If I
remember correctly Access forgets to set the SetStretchBltMode to the
proper value before blitting the DIB to the form. The Metafile scaling
routines set the SetStretchBltMode to the proper value resulting in very
clean resized output.
THe resolution issue if more complex in its nature. Many Image file
formats do not store the resolution of the original image. Your monitor
is set to display at 96DPI(or 120DPI). What resolution do you want to
print the Image at. It all comes down to that if you know the dimensions
of the original image, you can load the image into the Image control and
be assured of an exact representation on the screen and in your report.
I certainly respect the issues you encountered on your system. I still
disagree with your statement that Access 97 can only display BMP files
correctly.
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.