ColorFromArgb Method (Int32, Int32, Int32, Int32)
Gets valid pdf Color object from RGB color components.

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public static Color FromArgb(
	int a,
	int r,
	int g,
	int b
)

Parameters

a
Type: SystemInt32
The alpha component value (value 0 - 255).
r
Type: SystemInt32
The Red color component (value 0 - 255).
g
Type: SystemInt32
The Green color component (value 0 - 255).
b
Type: SystemInt32
The Blue color component (value 0 - 255).

Return Value

Type: Color
Color object with each component value in [0..255] range.
See Also