ImageGear Professional for Windows ActiveX
Posterize Method

Description:

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.

Syntax:

      Posterize (pPage As IGPage, Levels As Long, imageChannels As
enumIGColorChannels)

Parameters:

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.

Return Value:

N/A

Bits Per Pixel:

8-bit gray level, 9-16-bit gray level, 24, and 32

Sample:

Ip_Fx

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback