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); }