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