MGL_getPCXSize

Obtain the dimensions of a PCX file from disk.

Declaration

ibool MGLAPI MGL_getPCXSize(
const char *PCXName,
int *width,
int *height,
int *bitsPerPixel)

Prototype In

mgraph.h

Parameters

PCXName | Name of the bitmap file to load header for
width | Place to store the bitmap width
height | Place to store the bitmap height
bitsPerPixel | Place to store the bitmap pixel depth

Return Value

True if the PCX file was found, false if not.

Description

This functions loads all the header information for a PCX file from disk, without actually loading the bits for the bitmap surface. This is useful to determine the dimensions and pixel format for the bitmap before it is loaded, so you can create an appropriate memory device context that you can load the bitmap into with the MGL_loadPCXIntoDC function.

See Also

MGL_loadPCX, MGL_loadPCXIntoDC

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