Click or drag to resize

BitmapImageCreateAsBinary Method (Int32, Int32, Int32, Boolean)

Creates a binary image based on input data. Values greater than 0 are set to white, otherwise they are set to black.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
public static IBitmapImage CreateAsBinary(
	int[] inputData,
	int width,
	int height,
	bool isTopDown
)

Parameters

inputData
Type: SystemInt32
Input data.
width
Type: SystemInt32
Input data width.
height
Type: SystemInt32
Input data height.
isTopDown
Type: SystemBoolean
True if input data is stored top down.

Return Value

Type: IBitmapImage
A new image instance.
See Also