ImageGear for C and C++ on Windows v20.0 - Updated
IG_dspl_DDB_import
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_dspl_DDB_import

This function imports a HBITMAP into a HIGEAR instance.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_dspl_DDB_import(
       HDC hDC,
       HBITMAP hBitmap,
       HPALETTE hPalette,
       LPHIGEAR lphIGear
);

Arguments:

Name Type Description
hDC HDC HDC to use when processing the hBitmap. If NULL, the desktop DC is used.
hBitmap HBITMAP HBITMAP to import to the HIGEAR instance.
hPalette HPALETTE HPALETTE of the specified hBitmap. If NULL, then the system default palette is used.
lphIGear LPHIGEAR HIGEAR instance to which the hBitmap will be imported.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

To determine the number of errors currently on the error stack use IG_error_check. After fetching all error information you need using IG_error_get, use IG_error_clear to clear the stack.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

C Display

Is this page helpful?
Yes No
Thanks for your feedback.