Recurity.Swf.Gradient.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 virtual void Write( Stream output )
        {
            BitStream bits = new BitStream( output );

            bits.WriteBits( 2, ( Int32 )this._spreadMode );
            bits.WriteBits( 2, ( Int32 )this._interpolationMode );
            bits.WriteBits( 4, ( Int32 )this._numGradients );

            bits.WriteFlush();

            for(int i = 0; i < this._numGradients; i++)
            {
                this._gradientRecords[i].Write( output );
            }
        }