Color32FromRgb(Int32) Method
Creates a
Color32 structure from a 24-bit RGB value. The highest byte of the specified integer is ignored
and the
A property of the result will be 255.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public static Color32 FromRgb(
int rgb
)
Public Shared Function FromRgb (
rgb As Integer
) As Color32
public:
static Color32 FromRgb(
int rgb
)
static member FromRgb :
rgb : int -> Color32
- rgb Int32
- A value specifying the 24-bit RGB value. As a hex value it can be specified as 0xRR_GG_BB.
The possibly nonzero alpha component will be ignored.
Color32A
Color32 structure from a 24-bit RGB value.