[]
        
(Showing Draft Content)

C1.Util.DX.ColorF.FromArgb

FromArgb Method

FromArgb(int)

Converts the color from an ARGB integer.

Declaration
public static ColorF FromArgb(int argb)
Public Shared Function FromArgb(argb As Integer) As ColorF
Parameters
Type Name Description
int argb

A packed integer containing all four color components in ARGB order

Returns
Type Description
ColorF

A color.

FromArgb(int, int, int)

Creates a ColorF structure from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly fully opaque.

Declaration
public static ColorF FromArgb(int red, int green, int blue)
Public Shared Function FromArgb(red As Integer, green As Integer, blue As Integer) As ColorF
Parameters
Type Name Description
int red
int green
int blue
Returns
Type Description
ColorF

FromArgb(int, int, int, int)

Creates a ColorF structure from the four ARGB component (alpha, red, green, and blue) values.

Declaration
public static ColorF FromArgb(int alpha, int red, int green, int blue)
Public Shared Function FromArgb(alpha As Integer, red As Integer, green As Integer, blue As Integer) As ColorF
Parameters
Type Name Description
int alpha
int red
int green
int blue
Returns
Type Description
ColorF