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.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
C#
[CLSCompliantAttribute(false)]
public static Color32 FromRgb(
	uint rgb
)

Parameters

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.

Return Value

Color32
A Color32 structure from a 24-bit RGB value.

See Also