Click or drag to resize

IBitmapImageForEachGsPixel Method (FuncInt32, Int32, Int32, Int32)

Sets new grey scale levels for the instance image, and exposes all immediate neighbour pixels in a clockwise order (i.e. Centre, {N, NE, E, SE, ..., NW}).

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage ForEachGsPixel(
	Func<int, int[], int> func,
	int nonPixelValue
)

Parameters

func
Type: SystemFuncInt32, Int32, Int32
(i, n)->i
nonPixelValue
Type: SystemInt32
The value to use for neighbour pixels that fall outside of the image perimeter.

Return Value

Type: IBitmapImage
A new image instance with effect applied.
Exceptions
ExceptionCondition
ArgumentNullExceptionfunc
ArgumentOutOfRangeExceptionnonPixelValue
See Also