FizVizController/FizVizController/Commands/FizVizCommand.cs
/// <summary>
/// Write a color object to the given data array starting at offset
/// </summary>
/// <param name="data"></param>
/// <param name="c"></param>
/// <param name="offset"></param>
Write a color object to the given data array starting at offset
Write a color object to the given data array starting at offset
protected void WriteColorBytes(byte[] data, Windows.UI.Color c, uint offset)
        {
            data[offset++] = Convert.ToByte(c.R & 0x7F);
            data[offset++] = Convert.ToByte((c.R >> 7) & 0x7F);
            data[offset++] = Convert.ToByte(c.G & 0x7F);
            data[offset++] = Convert.ToByte((c.G >> 7) & 0x7F);
            data[offset++] = Convert.ToByte(c.B & 0x7F);
            data[offset] = Convert.ToByte((c.B >> 7) & 0x7F);
        }
protected void WriteColorBytes ( byte [ ] data , Windows . UI . Color c , uint offset ) { data [ offset ++ ] = Convert . ToByte ( c . R & 0x7F ) ; data [ offset ++ ] = Convert . ToByte ( ( c . R >> 7 ) & 0x7F ) ; data [ offset ++ ] = Convert . ToByte ( c . G & 0x7F ) ; data [ offset ++ ] = Convert . ToByte ( ( c . G >> 7 ) & 0x7F ) ; data [ offset ++ ] = Convert . ToByte ( c . B & 0x7F ) ; data [ offset ] = Convert . ToByte ( ( c . B >> 7 ) & 0x7F ) ; }
Write a color object to the given data array starting at offset
Write a color object to the given data array starting at offset
data
byte[]
None
c
Windows.UI.Color
None
offset
uint
None