Method ForEachPixel
ForEachPixel<T>(ActionRef<SKColor, T>, T)
Executes specified action
for the each pixel of the image.
public virtual bool ForEachPixel<T>(ActionRef<SKColor, T> action, T param)
Parameters
action
ActionRef<SKColor, T>Action to call for the each pixel. RGBValue is passed as the first parameter of the action.
param
TCustom value. It is passed to the
action
as the second parameter.
Returns
Type Parameters
T
Type of the custom value.
ForEachPixel<T>(ActionRef<RGBValue, T>, T)
Executes specified action
for the each pixel of the image.
public virtual bool ForEachPixel<T>(ActionRef<RGBValue, T> action, T param)
Parameters
action
ActionRef<RGBValue, T>Action to call for the each pixel. RGBValue is passed as the first parameter of the action.
param
TCustom value. It is passed to the
action
as the second parameter.
Returns
Type Parameters
T
Type of the custom value.
Remarks
For an example of the action implementation, see source code of the ChangeLightness(ref RGBValue, int) method.