Converts a true color image (24 bit) to black/white (1 bit)

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.0.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void ConvertToBlackWhite(
	IEImage..::..DitherType ditherType,
	int threshold
)
Public Sub ConvertToBlackWhite ( _
	ditherType As IEImage..::..DitherType, _
	threshold As Integer _
)
public:
void ConvertToBlackWhite(
	IEImage..::..DitherType ditherType, 
	int threshold
)

Parameters

ditherType
IEImage..::..DitherType
The dithering algorithm used to convert the image
threshold
Int32
The threshold value when ditherType=DitherType.Threshold

Examples

CopyC#
Image.ConvertToBlackWhite(IEImage.DitherType.Ordered);
Image.ConvertToBlackWhite(IEImage.DitherType.Threshold,100);

See Also