This function calculates all the display parameters, the way IG_dspl_image_draw() does, and produces the same palette that IG_dspl_image_draw realizes before drawing onto hDC; it returns DevicePalette if it is not set with a custom value.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_dspl_palette_create( [IN] HIGEAR hIGear, [IN] DWORD dwGrpID, [IN] HWND hWnd, [IN] HDC hDC, [OUT] HPALETTE FAR* lphPalette ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | ImageGear handle of image. |
DwGrpID | DWORD | Identifier of group containing the palette options to use. |
HWnd | HWND | Handle of window where the image is drawn. |
HDC | HDC | Handle of device context on which to draw. |
LphPalette | HPALETTE FAR* | Pointer to where the palette handle should be returned. |
Returns the number of ImageGear errors that occurred during this function call.
All pixel formats supported by ImageGear for C and C++.
Medical, MFC
Copy Code
|
|
---|---|
HIGEAR hIGear; /* HIGEAR handle of image */ DWORD nGrpID; /* display group identifier */ HPALETTE hPalette; /* handle of palette */ ... IG_dspl_palette_create( hIGear, nGrpID, hWnd, hDC, &hPalette ); ... |