ColorFromArgb Method (Int32, Int32, Int32, Int32) |
Gets valid pdf Color object from RGB color components.
Namespace: Aspose.PdfAssembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntaxpublic static Color FromArgb(
int a,
int r,
int g,
int b
)
Public Shared Function FromArgb (
a As Integer,
r As Integer,
g As Integer,
b As Integer
) As Color
public:
static Color^ FromArgb(
int a,
int r,
int g,
int b
)
static member FromArgb :
a : int *
r : int *
g : int *
b : int -> Color
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