Table of Contents

Method WithConvertedColors

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

WithConvertedColors(Func<ColorStruct, ColorStruct>)

Creates an new image from this image with all pixels converted using the specified function.

public virtual Image WithConvertedColors(Func<ColorStruct, ColorStruct> func)

Parameters

func Func<ColorStruct, ColorStruct>

Function used to convert color of the pixel.

Returns

Image