Reign.Video.Image.Mipmap.SwapRBColorChannels C# (CSharp) Method

SwapRBColorChannels() public method

public SwapRBColorChannels ( ) : byte[]
return byte[]
            public byte[] SwapRBColorChannels()
            {
                var data = new byte[Data.Length];
                for (int i = 0; i != data.Length; i += 4)
                {
                    data[i] = Data[i+2];
                    data[i+1] = Data[i+1];
                    data[i+2] = Data[i];
                    data[i+3] = Data[i+3];
                }

                return data;
            }