ImageGear for C and C++ on Windows v20.0 - Updated
IG_GUI_color_profile_window_create
API Reference Guide > Core Component API Reference > Core Component Functions Reference > GUI Functions > GUI Color Profile Functions > IG_GUI_color_profile_window_create

This function creates a Color Profile GUI window.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_GUI_color_profile_window_create(
        HIGEAR hIGear, 
        DWORD dwGrpID, 
        HWND hWndParent, 
        HWND hwndImage, 
        DWORD dwStyle, 
        const LPSTR lpszTitle, 
        INT nX, 
        INT nY, 
        INT nWidth, 
        INT nHeight, 
        HWND FAR* lphwndProfile 
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of image.
dwGrpID DWORD Display group identifier used for image drawing which options to be used in GUI calculations.
hWndParent HWND Handle of Parent window.
dwStyle HWND Window style bits.
HWND hwndImage DWORD The handle of the window where the image is drawn.
lpszTitle const LPSTR Title of color_profile Window.
nX INT X position of upper left corner of color_profile window.
nY INT Y position of upper left corner of color_profile window.
nWidth INT Width of color_profile window.
nHeight INT Height of color_profile window.
lphwndProfile HWND FAR* Far pointer to HWND object to hold color_profile window handle.

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:

Display, GUI Windows

Remarks:

This window is designed to display image data along the line that is specified by dragging the mouse. When the mouse is moved about in hwndParent window with the left button held down, a line is painted over the image from the point where mouse was clicked to the current mouse position. As the line is moved, the GUI window displays image data from the selected area in chart format.

By default, this function will create a GUI window using the style WS_OVERLAPPEDWINDOW. To modify the attributes of the window, use IG_GUI_color_profile_attribute_set().

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