ImageGear Professional for Windows ActiveX
ReduceWithDiffuse Method

Description:

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.

Syntax:

      ReduceWithDiffuse (ByVal pPage As IGPage, ByVal destDepth As
Long, ByVal Threshold As Long)

Parameters:

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.

Return Value:

N/A

Bits Per Pixel:

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback