ImageGear for C and C++ on Windows v19.9 - Updated
AT_IGGUI_IP_CONTRAST
API Reference Guide > GUI Component API Reference > GUI Component Structures Reference > AT_IGGUI_IP_CONTRAST

This structure is used by the IG_gui_ip_contrast_dlg function to adjust the contrast of the image using different methods.

Declaration:

 
Copy Code
typedef struct tag AT_IGGUI_IP_CONTRAST
{
        DWORD cbSize;
        UINT uFlags;
        HIGEAR hIGear;
        HWND hWnd;
        LPCHAR lpszTitle;
        AT_RECT rc;
        UINT nContrastType;
        AT_MODE nMode;
        DOUBLE dblContrast;
        DOUBLE dblBrightness;
        DOUBLE dblGamma;
        AT_ERRCOUNT nErrCount;
        LPFNIGGUI_IP_UPDATE lpfnUpdateProc;
}AT_IGGUI_IP_CONTRAST;

Members:

Name Type Description
cbSize DWORD Specifies the length, in bytes, of the structure.
uFlags UINT A set of bit flags you can use to initialize the dialog box.
hIGear HIGEAR A handle of an image.
hWnd HWND A handle of the window to update.
lpszTitle LPCHAR A dialog title.
rc AT_RECT An AT_RECT struct specifying the rectangular portion of the image on which to operate.
nContrastType UINT A type of a contrast operation (see IG_IGGUI_IP_CONTRAST_ constants).
nMode AT_MODE IG_CONTRAST_PIXEL or IG_CONTRAST_PALETTE, indicating whether to adjust by altering the pixels themselves, or the palette.
dblContrast DOUBLE A value from -255.0 to +255.0, the adjustment in contrast.
dblBrightness DOUBLE A value from - 255.0 to +255.0, the adjustment in brightness.
dblGamma DOUBLE A value greater than 0.0. The normal range is from 0.75 to 3.0.
nErrCount AT_ERRCOUNT The number of ImageGear errors that occurred during this function call.
lpfnUpdateProc LPFNIGGUI_IP_UPDATE A pointer to the function that is called when the 'Apply' button is clicked.