Color64FromRgb(Int64) Method

Creates a Color64 structure from a 48-bit RGB value. The highest two bytes of the specified integer are ignored and the A property of the result will be 65535.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public static Color64 FromRgb(
	long rgb
)

Parameters

rgb  Int64
A value specifying the 48-bit RGB value. As a hex value it can be specified as 0xRRRR_GGGG_BBBB. The possibly nonzero alpha component will be ignored.

Return Value

Color64
A Color64 structure from a 48-bit RGB value.

See Also