/// <summary> /// Parses this object out of a stream /// </summary> /// <param name="input">The input stream.</param> /// <param name="colorTableSize"></param> /// <param name="imageDataSize"></param> public override void Parse( Stream input, byte colorTableSize, UInt32 imageDataSize ) { Rgba temp = null; for (int i = 0; i <= colorTableSize; i++) // BitmapColorTableSize + 1. { temp = new Rgba( this._SwfVersion ); temp.Parse( input ); this._colorTableRGB.Add(temp); } this._colormapPixelData = new byte[(Int32)imageDataSize]; int read = input.Read( this._colormapPixelData, 0, (Int32)imageDataSize ); }
/// <summary> /// <para>Gradient information</para> /// </summary> /// <param name="InitialVersion">The version of the Swf file using this object.</param> public MorphGradRecord(byte InitialVersion) : base(InitialVersion) { this._startColor = new Rgba(this._SwfVersion); this._endColor = new Rgba(this._SwfVersion); }
/// <summary> /// The format of a line style value within the file /// </summary> /// <param name="InitialVersion">The version of the Swf file using this object.</param> public MorphLineStyle(byte InitialVersion) : base(InitialVersion) { this._startColor = new Rgba(this._SwfVersion); this._endColor = new Rgba(this._SwfVersion); }