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
actionActionRef<SKColor, T>Action to call for the each pixel. RGBValue is passed as the first parameter of the action.
paramTCustom value. It is passed to the
actionas the second parameter.
Returns
Type Parameters
TType 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
actionActionRef<RGBValue, T>Action to call for the each pixel. RGBValue is passed as the first parameter of the action.
paramTCustom value. It is passed to the
actionas the second parameter.
Returns
Type Parameters
TType of the custom value.
Remarks
For an example of the action implementation, see source code of the ChangeLightness(ref RGBValue, int) method.