Click or drag to resize

IBlobInfoToGreyScaleImage Method (Int32, Int32, Int32, Int32, FuncInt32, Int32)

Converts instance to greyscale image.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage ToGreyScaleImage(
	int startX,
	int startY,
	int regionWidth,
	int regionHeight,
	Func<int, int> fn
)

Parameters

startX
Type: SystemInt32
The start x position of the region.
startY
Type: SystemInt32
The start y position of the region.
regionWidth
Type: SystemInt32
Width of the region.
regionHeight
Type: SystemInt32
Height of the region.
fn
Type: SystemFuncInt32, Int32
A function that accepts a blob Id and returns a value from 0 to 255 inclusive.

Return Value

Type: IBitmapImage
A new image instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionfn
ArgumentOutOfRangeExceptionstartX or startY or regionWidth or regionHeight
See Also