| Home
| Previous
| Next
| Up

MGL_loadPCXIntoDCExt

Load a lightweight PCX file from disk using an open file.

Declaration

ibool MGLAPI MGL_loadPCXIntoDCExt(
MGLDC *dc,
FILE *f,
ulong dwOffset,
ulong dwSize,
int dstLeft,
int dstTop,
ibool loadPalette)

Prototype In

mgraph.h

Parameters

dc | Device context to load bitmap into
f | Open binary file to read bitmap from
dwOffset | Offset to start of PCX file within open file
dwSize | Size of PCX file in bytes
dstLeft | Left coordinate to load PCX at
dstTop | Top coordinate to load PCX at
loadPalette | True if the palette should also be loaded

Return Value

Pointer to the loaded PCX file, NULL on error.

Description

This function is the same as MGL_loadPCXIntoDC, however it loads the file from a previously open file. This allows you to create your own large files with multiple files embedded in them.

See Also

MGL_loadPCXIntoDC, MGL_loadBitmapIntoDC

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