ImageGear Professional v18.2 > API Reference Guide > Effects Component API Reference > Effects Component Objects > IGEffectsCtl Control > IGEffectsCtl Methods > Posterize Method |
Reduces the number of colors in the image referenced by pPage object by creating a "staircase" in the palette. Use the Levels parameter to specify the number of steps or levels you want in the resulting image. A value of 255 means no change; a value of 20 creates 20 equally spaced "steps".
This method takes into account the ROI settings of pPage object, that are accessible via the IGPage Object.ROI Property. By default ROI is set to the entire image.
Posterize (pPage As IGPage, Levels As Long, imageChannels As
enumIGColorChannels)
Name | Description |
---|---|
pPage | Reference to IGPage Object for which to apply the posterize effect. |
Levels | Value between 1 and 255 specifying the number of unique colors or levels you want in the resulting image. |
imageChannels | IG_COLOR_COMP_RGB, IG_COLOR_COMP_R, _B, or _G values of enumIGColorChannels Enumeration specifying color channels for which to apply the posterize operation. |
N/A
8-bit gray level, 9-16-bit gray level, 24, and 32
Ip_Fx