Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding BMP file dimensions
Message
 
 
To
14/09/1998 11:46:13
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00136232
Message ID:
00136246
Views:
29
Roger,

You should be able to read the file with the LLFF. The dimensions of the BMP up at the beginning of the file. From the MSDN CD:

typedef struct tagBITMAPINFOHEADER {
DWORD biSize;
LONG biWidth;
LONG biHeight;
WORD biPlanes;
WORD biBitCount;
DWORD biCompression;
DWORD biSizeImage;
LONG biXPelsPerMeter;
LONG biYPelsPerMeter;
DWORD biClrUsed;
DWORD biClrImportant;
} BITMAPINFOHEADER;

biSize Specifies the number of bytes required by the structure.
biWidth Specifies the width of the bitmap, in pixels.
biHeight Specifies the height of the bitmap, in pixels. If biHeight is positive, the bitmap is a bottom-up DIB (device-independent bitmap) and its origin is the lower left corner. If biHeight is negative, the bitmap is a top-down DIB and its origin is the upper left corner.

>Is there a way to create a function in FPW2.6 that returns the dimensions (height and width) of a BMP file?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform