MGL_getJPEGSizeExt
Obtain the dimensions of a JPEG file from an opened file.
Declaration
ibool MGLAPI MGL_getJPEGSizeExt(
FILE *f,
ulong dwOffset,
ulong dwSize,
int *width,
int *height,
int *bitsPerPixel,
pixel_format_t *pf)
Prototype In
mgraph.h
Parameters
f |
Open binary file to read bitmap from |
dwOffset |
Offset to start of JPEG file |
dwSize |
Size of JPEG file |
width |
Width of bitmap |
height |
Height of bitmap |
bitsPerPixel |
Pixel depth of bitmap |
pf |
Place to store the bitmap pixel format information |
Return Value
True if JPEG was found, false if not.
Description
This function is the same as MGL_getJPEGSize, however it works with a previously opened file. This allows you to create your own large files with multiple files embedded in them.
Note that JPEG files are inherently 24-bit, so when you call this function it will always return information for a 24-bit RGB pixel format image.
See Also
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com