PColorFFromArgb Method

Creates a PColorF instance from the specified ColorF structure specifying a custom alpha value. This method does not validate if the color components are between 0 and 1, but you can use the IsValid property or the Clip method on the result.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public static PColorF FromArgb(
	float a,
	ColorF baseColor
)

Parameters

a  Single
The alpha value for the result PColorF instance.
baseColor  ColorF
The ColorF instance to which apply the new alpha.

Return Value

PColorF
A PColorF instance from the specified ColorF structure and alpha value.

See Also