ColorFFromArgb Method

Creates a ColorF instance from the specified ColorF structure, but with the new specified 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 ColorF FromArgb(
	float a,
	ColorF baseColor
)

Parameters

a  Single
The alpha value for the new ColorF instance.
baseColor  ColorF
The ColorF instance from which to create the new one.

Return Value

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

See Also