 |
ColorFromArgb(Int32, Color) Method |
Constructs a color by replacing the alpha component of an existing color.
Namespace: SelectPdf.Universal.DrawingAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic static Color FromArgb(
int alpha,
Color baseColor
)
Public Shared Function FromArgb (
alpha As Integer,
baseColor As Color
) As Color
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
ColorA color with the base color's RGB and the specified alpha.
See Also