Click or drag to resize
Pdf Library for .NET

ColorFromArgb(Int32, Color) Method

Constructs a color by replacing the alpha component of an existing color.

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

Parameters

alpha  Int32
The new alpha component (0 = transparent, 255 = opaque; clamped).
baseColor  Color
The color whose red/green/blue components are reused.

Return Value

Color
A color with the base color's RGB and the specified alpha.
See Also