CRasterImage::LoadFromDIBSection

bool  LoadFromDIBSectionl( BITMAPINFOHEADER* biHeader, void* DIBSectionBits );

Parameters

biHeader pointer to bitmap description in format of BITMAPINFOHEADER structure. Only 24 and 32 bpp biHeader->biBitCount values are supported.
DIBSectionBits bitmap image data. This is usually the ppvBits parameter value which is returned by calling the Win32 CreateDIBSection function.

Return Value

true if function succeed. false in case of failure. Additional error inromation acn be retrieved by calling GetLasteErrorMessage() function.

Remarks

The LoadFromDIBSectionl function loads image's from a DIB bitmap. Previous image content of the object will be lost.

See Also

CRasterImage class methods