Click or drag to resize
Pdf Library for .NET

ColorFromArgb(Int32, Int32, Int32, Int32) Method

Constructs a color with the given alpha/red/green/blue components. Each value is clamped to 0–255.

Namespace: SelectPdf.Universal.Drawing
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public static Color FromArgb(
	int alpha,
	int red,
	int green,
	int blue
)

Parameters

alpha  Int32
The alpha component (0 = transparent, 255 = opaque; clamped).
red  Int32
The red component (0–255; clamped).
green  Int32
The green component (0–255; clamped).
blue  Int32
The blue component (0–255; clamped).

Return Value

Color
A color with the specified components.
See Also