public Encode ( byte R, byte G, byte B, byte A ) : uint | ||
R | byte | |
G | byte | |
B | byte | |
A | byte | |
return | uint |
public uint Encode(byte R, byte G, byte B, byte A)
{
uint Result = 0;
Red.InsertFromByte(ref Result, R);
Green.InsertFromByte(ref Result, G);
Blue.InsertFromByte(ref Result, B);
Alpha.InsertFromByte(ref Result, A);
return Result;
}
public static uint Encode(this Color Color, ColorFormat Format) { return Format.Encode(Color.R, Color.G, Color.B, Color.A); }