CSharpUtils.ColorFormat.Encode C# (CSharp) Метод

Encode() публичный Метод

public Encode ( byte R, byte G, byte B, byte A ) : uint
R byte
G byte
B byte
A byte
Результат 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;
		}

Usage Example

Пример #1
0
 public static uint Encode(this Color Color, ColorFormat Format)
 {
     return Format.Encode(Color.R, Color.G, Color.B, Color.A);
 }
ColorFormat