PColorFFromRgba Method

Creates a PColorF structure from a Vector4 instance mapping X to R, Y to G, Z to B and W to A.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public static PColorF FromRgba(
	Vector4 vector
)

Parameters

vector  Vector4
A Vector4 representing the RGBA color components. The parameter is not validated, but you can use the IsValid property or the Clip method on the created result.

Return Value

PColorF
A PColorF structure converted from the specified Vector4.

See Also