LoadNonRGBDCXIntoDIB

#include "BIPCX.H"

 

HDIB  CALLBACK LoadNonRGBDCXIntoDIB(   LPTSTR          lpszName,
UINT    nImage,
int far    *lpiError)

Description

Loads the n-th non rgb DCX image into a Device Independent Bitmap.

Parameters

LPTSTR

LpszName

DCX file name.

UINT

NImage

The n-th image. nImage = 0,1,2...

int far

*lpiError;

Pointer to error code

Additional Information

This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.

Return values

Return a handle of the Device Independent Bitmap or NULL if any error. Error code is in lpnError.

Programming notes

Image referencing is zero based. The first image is 0 and second is 1. This function loads the DCX image into DIB. Color space formats flags are declared in BiPCX.h. Available color space flags: DCX_YUV, DCX_YIQ, DCX_HSI, DCX_HSV, DCX_LAB, DCX_XYZ, DCX_CMY, DCX_RGB. The color space flag is stored in the header of the DCX image.

Requirements

Header :     Declared in BiPCX.h; include BiPCX.h.

Library :    Use BiPCX.lib.

DLLs :       BiPCX.dll.

Code example

None at present.