Supported Browsers Home   
MGL_getPNGSize Previous   
MGL_getPalette Next   
External Functions Up   

MGL_getPNGSizeExt

Obtain the dimensions of a PNG file from an opened file.

Declaration

ibool MGLAPI MGL_getPNGSizeExt(
    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 PNG file

dwSize

Size of PNG 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 PNG was found, false if not.

Description

This function is the same as MGL_getPNGSize, 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_getPNGSize

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