ImageGear Professional v18.2 > API Reference Guide > Processing Component API Reference > Processing Component Objects > IGProcessingCtl Control > IGProcessingCtl Methods > ReduceWithDiffuse Method |
Reduces an image to a fewer number of Bits Per Pixel. The target bit depth is specified by argument destDepth. In general, a color image will be reduced to a fewer number of colors, and a grayscale image will be reduced to a fewer number of shades of gray. Note that setting destDepth = 1 will reduce the image to monochrome or black-and-white.
Threshold sets a threshold value for the target image. Threshold = 128 means that black and white in the target image will be in equal proportion. Threshold greater than 128 would mean more bright than dark, Threshold less than 128 would mean more dark than bright.
The input number of Bits Per Pixel must be greater than destDepth, or an error will result.
ReduceWithDiffuse (ByVal pPage As IGPage, ByVal destDepth As
Long, ByVal Threshold As Long)
Name | Description |
---|---|
pPage | Reference to IGPage Object. |
destDepth | Number of bits per pixel after reduction (4 or 1). |
Threshold | Threshold value for dithering, 0 to 255. |
N/A
Image Processing and Effects