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. alphaValue of 0 would be completely black, 200 completely white an alphaValue of 100 returns the same color.

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

Parameters

rgb RGBValue

RGB Color.

alphaValue int

Lightness value (0..200).

ChangeLightness(int)

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

public Color ChangeLightness(int alphaValue)

Parameters

alphaValue int

Lightness value (0..200).

Returns

Color