Click or drag to resize

ColorFromName Method (ColorName, Double, Double)

Creates a new color instance from the specified color name, luminance and transparency.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1032 (21.3.35.1032)
Syntax
public static Color FromName(
	ColorName name,
	double luminance,
	double transparency
)

Parameters

name
Type: GemBox.PresentationColorName
The color name.
luminance
Type: SystemDouble
The luminance (-1 = darkest, 0 = none, 1 = lightest).
transparency
Type: SystemDouble
The transparency (0 = fully opaque, 1 = fully transparent).

Return Value

Type: Color
A color instance with the specified name, luminance and transparency.
See Also