ImageGear for C and C++ on Windows v19.9 - Updated
IG_GUI_color_profile_attribute_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Color Profile Functions > IG_GUI_color_profile_attribute_get

This function gets the current attribute settings of the GUI window.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_color_profile_attribute_get(
        HWND hWnd, 
        AT_MODE nAttributeID, 
        LPVOID lpData
);

Arguments:

Name Type Description
hWnd HWND Handle of window in which the image is displayed.
nAttributeID AT_MODE A variable of type AT_MODE, such as IG_GUI_WINDOW_PAINT.
lpData LPVOID A VOID pointer to a variable of the type required by the nAttributeID parameter. This gets the value for the attribute defined by nAttributeID.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

GUI Windows

Remarks:

Currently, there are only two attributes, but this may be expanded in the future:

See IG_GUI_color_profile_attribute_set() for the values that lpData may have when either of the above- listed attributes are is used.