Recurity.Swf.TagHandler.CsmTextSettings.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)
        {
            BinaryWriter bw = new BinaryWriter(output);

            this.WriteTagHeader(output);

            bw.Write(this._textID);

            BitStream bits = new BitStream(output);

            bits.WriteBits(2, (Int32)this._useFlashType);
            bits.WriteBits(3, (Int32)this._gridFit);
            bits.WriteBits(3, 0); // reserved
            bits.WriteFlush();

            bits.WriteBitsFB(32, this._thickness);
            bits.WriteBitsFB(32, this._sharpness);

            output.WriteByte(0); // reserved byte
        }