| Home
| Previous
| Next
| Up

MGL_loadPNGExt

Load a PNG bitmap file from disk using an open file.

Declaration

bitmap_t * MGLAPI MGL_loadPNGExt(
FILE *f,
ulong dwOffset,
ulong dwSize,
ibool loadPalette)

Prototype In

mgraph.h

Parameters

f | Open binary file to read bitmap from
dwOffset | Offset to start of PNG file within open file
dwSize | Size of PNG file in bytes
loadPalette | true if you wish to load the images palette

Return Value

Pointer to the loaded bitmap file

Description

This function is the same as MGL_loadPNG, 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_loadPNG, MGL_loadBitmap

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