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

This structure is used by the IG_gui_fx_posterize_dlg function to reduce the number of actual colors in the image by creating a "staircase" in the palette.

Declaration:

 
Copy Code
typedef struct tag AT_IGGUI_FX_POSTERIZE
{
        DWORD cbSize;
        UINT uFlags;
        HIGEAR hIGear;
        HWND hWnd;
        LPCHAR lpszTitle;
        AT_RECT rc;
        WORD nLevels;
        AT_MODE nColorChannel;
        AT_ERRCOUNT nErrCount;
        LPFNIGGUI_FX_UPDATE lpfnUpdateProc;
}AT_IGGUI_FX_POSTERIZE;

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 to be processed.
nLevels WORD The number of unique colors, or levels, in the resulting image. The valid range is from 1 to 255.
nColorChannel AT_MODE IG_COLOR_COMP_RGB, or use IG_COLOR_COMP_R, _B, or _G to affect only one color channel.
nErrCount AT_ERRCOUNT The number of ImageGear errors that occurred during this function call.
lpfnUpdateProc LPFNIGGUI_FX_UPDATE A pointer to the function that is called when the 'Apply' button is clicked.