Table of Contents

Method FromBgr

Namespace
LMKit.Graphics.Primitives
Assembly
LM-Kit.NET.dll

FromBgr(int)

Creates an opaque Color32 from a packed 24-bit BGR integer (0xBBGGRR).

public static Color32 FromBgr(int bgr)

Parameters

bgr int

Packed integer in the form 0xBBGGRR.

Returns

Color32

A Color32 instance with alpha=255.

FromBgr(int, byte)

Creates a Color32 from a packed 24-bit BGR integer (0xBBGGRR) and an alpha.

public static Color32 FromBgr(int bgr, byte a)

Parameters

bgr int

Packed integer in the form 0xBBGGRR.

a byte

Alpha (0..255).

Returns

Color32

A Color32 instance representing the color.