Click or drag to resize

ColorFromRgb Method (Int32, Int32, Int32, Double)

Creates a new color instance from the specified Red, Green and Blue components and transparency.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1045 (21.3.35.1045)
Syntax
public static Color FromRgb(
	int r,
	int g,
	int b,
	double transparency
)

Parameters

r
Type: SystemInt32
The Red component (from 0 to 255).
g
Type: SystemInt32
The Green component (from 0 to 255).
b
Type: SystemInt32
The Blue component (from 0 to 255).
transparency
Type: SystemDouble
The transparency (0 = fully opaque, 1 = fully transparent).

Return Value

Type: Color
A new color instance from the specified Red, Green and Blue components and transparency.
See Also