Table of Contents

Method ApplyTint

Namespace
DocWright.Layout
Assembly
DocWright.Layout.dll

ApplyTint(ColorRgb, byte)

Applies a w:themeTint transform: luminance moves toward white in HSL space (L' = 1 − (1 − L)·tint/255); 0xFF is identity, 0x00 is white.

public static ColorRgb ApplyTint(ColorRgb color, byte tint)

Parameters

color ColorRgb

The base color.

tint byte

The tint byte.

Returns

ColorRgb

The tinted color.