ColorFFromRgb Method
Creates a
ColorF structure from a
Vector3 instance mapping
X to
R,
Y to
G and
Z to
B. The
A component of the result will be 1.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static ColorF FromRgb(
Vector3 vector
)
Public Shared Function FromRgb (
vector As Vector3
) As ColorF
public:
static ColorF FromRgb(
Vector3 vector
)
static member FromRgb :
vector : Vector3 -> ColorF
- vector Vector3
- A Vector3 representing the RGB color components. The parameter is not validated, but
you can use the IsValid property or the Clip method on the created result.
ColorFA
ColorF structure converted from the specified
Vector3.