Table of Contents

Method ChangeLightness

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

ChangeLightness(ref RGBValue, int)

Darkens or lightens a color, based on the specified percentage ialpha of 0 would be completely black, 200 completely white an ialpha of 100 returns the same color.

public static void ChangeLightness(ref RGBValue rgb, int ialpha)

Parameters

rgb RGBValue

RGB Color.

ialpha int

Lightness value (0..200).

ChangeLightness(int)

Darkens or lightens a color, based on the specified percentage ialpha of 0 would be completely black, 200 completely white an ialpha of 100 returns the same color.

public Color ChangeLightness(int ialpha)

Parameters

ialpha int

Lightness value (0..200).

Returns

Color