Supported Browsers Home   
MGL_loadJPEGIntoDC Previous   
MGL_loadPCX Next   
External Functions Up   

MGL_loadJPEGIntoDCExt

Loads a JPEG file directly into an existing device context using an open file.

Declaration

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

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 JPEG file within open file

dwSize

Size of JPEG file in bytes

dstLeft

Left coordinate to load JPEG at

dstTop

Top coordinate to load JPEG at

num8BitColors

Number of colors for 8-bit image, 0 for RGB images, -1 for grayscale

 

Return Value

Pointer to the loaded JPEG file, NULL on error.

Description

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

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