Recurity.Swf.TagHandler.DefineShape4.Write C# (CSharp) Method

Write() public method

public Write ( Stream output ) : void
output Stream
return void
        public override void Write(Stream output)
        {
            BitStream bits = new BitStream(output);
            BinaryWriter bw = new BinaryWriter(output);

            this.WriteTagHeader(output);
            bw.Write(this._shapeID);

            this._shapeBounds.Write(output);
            this._edgeBounds.Write(output);

            bits.WriteBits(5, 0); // reserved

            bits.WriteBits(1, this._usesFillWindingRule ? 1 : 0);
            bits.WriteBits(1, this._usesNonScalingStrokes ? 1 : 0);
            bits.WriteBits(1, this._usesScalingStrokes ? 1 : 0);

            this._shapes.Write(output);
        }