Table of Contents

Method ForEachPixel

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

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 T

Custom value. It is passed to the action as the second parameter.

Returns

bool

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 T

Custom value. It is passed to the action as the second parameter.

Returns

bool

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.