Recurity.Swf.AlphaColorMapData.Parse C# (CSharp) Method

Parse() public method

Parses this object out of a stream
public Parse ( Stream input, byte colorTableSize, UInt32 imageDataSize ) : void
input Stream The input stream.
colorTableSize byte
imageDataSize System.UInt32
return void
        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 );
        }