: : : You can get the BMPInfo and display it like so:
: : :
: : : UNIT Show_BMP;
: : : VAR
: : : BMPInfo : InfoBlock;
: : :
: : : Begin
: : : GetBMPInfo('C:\MYPHOTO.BMP',BMPInfo);
: : : ShowBMPInfo(BMPInfo);
: : : End.
: : :
: : :
: : : Note that my unit doesn't check for compression in the files. If they use compression, it will not display them properly. With the info asked for above, it would help to have the SHOWBMPINFO listing as well.
: : :
: : : Phat Nat
: : :
: : I copied the code you posted, the one designed to tell me which mode I am in, into notepad and saved it as a pas file. I then added the PROGRAM command, but it wouldnt compile...
: :
:
: My mistake. It should be USES Show_BMP, not UNIT Show_BMP.
: Also, you didn't post what mode you were trying to use or what color depth your BMPs are.
:
: Phat Nat
:
:
'
I set pascal (the Graphix command) to use 640x480x8. The color depth is 24 bit...
im not sure I understand what the code you posted is supposed to tell me.
The thing that gets me is that regardless of what resolution I have set the program to display the images, I still (if I display the pictures in 320x200x8) get a picture that looks not as good when I look at it in windows normally (bearing in mind that the image is saved to 300x300)
I tried playing around with the resolutions.
320x200x8 works but doesnt look good enough
320x200x15 doesnt display any images (only text)
320x200x16 doesnt display any images (only text)
320x200x24 doesnt display any images (only text)
640x480x8 displayes images in fragments
640x480x1 displayes nothing but a purple cursor
640x480x4 displayes nothing but a purple cursor
640x480x15 doesnt display any images (only text)
640x480x16 fragmented images
640x480x24 fragmented images
800x600x4 doesnt display any images (purple text only)
800x600x8 black screen
800x600x15 only text
800x600x16 black screen
800x600x24 fragmented images
1024x768x4 didnt test,assume they wont work either.
1024x768x8
1024x768x15
1024x768x16
1024x768x24
1280x1024x4
1280x1024x8
1280x1024x15
1280x1024x16
1280x1024x24
Heres what the SHOWBMP told me:
Size = 270054
Bitmappoffset = 54
Type = 40
Width = 300
Height = 300
Bits = 24
Planes = 1
Filesize = 2700000
Realsize = 90000
XpelsPerMet = 2834
YPelsPelMet = 2834
Color Used = 0
Color Imp = 0
Is it the graphics card or is it the program?