ImageGear for C and C++ on Windows v20.1 - Updated
IG_GUI_pixdump_attribute_set
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Pixel Dump Functions > IG_GUI_pixdump_attribute_set

This function sets the attribute settings of the GUI Pixel Dump window.

Declaration:

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

Arguments:

Name Type Description
hWnd HWND Handle of window in which 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 sets the value for the attribute defined by nAttributeID.

Supported Raster Image Formats:

This function does not process image pixels.

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.

Sample:

GUI Windows

Remarks:

The settings available for nAttributeID are as follows:

lpData specifies the value of attribute to set. This is not address but value itself (32 bit). If nAttributeID is set to IG_GUI_PIXDUMP_FONT then lpData should contain handle HFONT of the font. For old font DeleteObject will be called.

If nAttributeID is set to IG_GUI_PIXDUMP_MODE then lpData should contain one of following values:

The default value forIG_GUI_DATA_COLOR_COMPONENT is: IG_GUI_PIXDUMP_COMPONENT_RGB.

If nAttributeID is IG_GUI_PIXDUMP_MODE then lpData should contain a combination of the following flags:

The default value for IG_GUI_PIXDUMP_MODE is: NULL

For 16-bit grayscale images, the intensity value will be displayed with any of the IG_GUI_DATA_COLOR_COMPONENT values.
Is this page helpful?
Yes No
Thanks for your feedback.