MGL_getBitmapSizeExt

Obtain the dimensions of a bitmap from an open file.

Declaration

ibool MGLAPI MGL_getBitmapSizeExt(
FILE *f,
ulong dwOffset,
ulong dwSize,
int *width,
int *height,
int *bitsPerPixel,
pixel_format_t *pf)

Prototype In

mgraph.h

Parameters

f | Pointer to opened bitmap file
dwOffset | Offset into the file
dwSize | Size of the bitmap file
width | Place to store the bitmap width
height | Place to store the bitmap height
bitsPerPixel | Place to store the bitmap pixel depth
pf | Place to store the bitmap pixel format

Return Value

True if the bitmap was found, otherwise false.

Description

This function is the same as MGL_getBitmapSize, however it works with a previously opened file. This allows you to create your own large files with multiple files embedded in them.

See Also

MGL_getBitmapSize

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com