Color32FromRgb(UInt32) 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: 9.1.1
[CLSCompliantAttribute(false)]
public static Color32 FromRgb(
uint rgb
)
<CLSCompliantAttribute(false)>
Public Shared Function FromRgb (
rgb As UInteger
) As Color32
public:
[CLSCompliantAttribute(false)]
static Color32 FromRgb(
unsigned int rgb
)
[<CLSCompliantAttribute(false)>]
static member FromRgb :
rgb : uint32 -> Color32
- rgb UInt32
- 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.