 | BitmapImageCreateAsBinary Method (Int32, Int32, Int32, Boolean, Int32, Int32, Boolean, Boolean) |
Creates a binary image based on input data, which has a threshold bracket applied.
If doInverse is false,
values within the bracked are set to white. Values outside the bracket are set to black.
Namespace:
CohesiveComputing.Imaging
Assembly:
CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntaxpublic static IBitmapImage CreateAsBinary(
int[] inputData,
int width,
int height,
bool isTopDown,
int thresholdLower,
int thresholdHigher,
bool toInverse,
bool addPadding
)
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. - thresholdLower
- Type: SystemInt32
Values less than or equal are set to black. - thresholdHigher
- Type: SystemInt32
Values greater than this are set to black. - toInverse
- Type: SystemBoolean
Determines if image inverse is generated. - addPadding
- Type: SystemBoolean
Determines whether a 1 pixel padding border is added to resulting image.
Return Value
Type:
IBitmapImageA new image instance.
See Also