Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.ColorTests
1 unit tests call DeltaEngine.Datatypes.Color.GetRgbaBytesFromArray(DeltaEngine.Datatypes.Color[])
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- colors
- Type: DeltaEngine.Datatypes Color
Return Value
Type: ByteRemarks
Examples
[Test] public void GetBgraBytesFromColorArrayWithAlpha() { var colors = new[] { Color.Black, Color.White, new Color(255, 0, 0, 128) }; Assert.AreEqual(new byte[] { 0, 0, 0, 255, 255, 255, 255, 255, 255, 0, 0, 128 }, Color.GetRgbaBytesFromArray(colors)); }
See Also