Recurity.Swf.Pix15.Write C# (CSharp) Method

Write() public method

Writes this object back to a stream.
public Write ( Stream output ) : void
output Stream The stream to write to.
return void
        public override void Write(Stream output)
        {
            BitStream bits = new BitStream(output);

            bits.WriteBits(1, 0); //reserved
            bits.WriteBits(5, this._Red);
            bits.WriteBits(5, this._Green);
            bits.WriteBits(5, this._Blue);
        }