MGL_loadBitmapIntoDCExt

Locates the specified bitmap file and loads it into a device context.

Declaration

ibool MGLAPI MGL_loadBitmapIntoDCExt(
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 | Pointer to opened bitmap file
dwOffset | Offset into the file
dwSize | Size of the bitmap file
dstLeft | Left coordinate to place bitmap at
dstTop | Top coordinate to place bitmap at
loadPalette | Should we load the palette values as well?

Return Value

True if the bitmap was successfully loaded.

Description

This function is the same as MGL_loadBitmapIntoDC, 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_loadBitmapIntoDC

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