Table of Contents

Method ConvertLightness

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

ConvertLightness(int)

Returns a changed version of the image based on the given lightness.

public virtual GenericImage ConvertLightness(int ialpha)

Parameters

ialpha int

Lightness (0..200).

Returns

GenericImage

Remarks

This utility function simply darkens or lightens a color, based on the specified percentage ialpha. ialpha of 0 would make the color completely black, 200 completely white and 100 would not change the color.