Recurity.Swf.Filter.BlurFilter.Parse C# (CSharp) Method

Parse() public method

public Parse ( Stream input ) : void
input Stream
return void
        public override void Parse( Stream input )
        {
            BinaryReader br = new BinaryReader( input );

            _BlurX = br.ReadUInt32();
            _BlurY = br.ReadUInt32();

            BitStream bits = new BitStream( input );
            _Passes = ( byte )bits.GetBits( 5 );

            uint reserved = bits.GetBits( 3 );
            if ( 0 != reserved )
            {
                throw new SwfFormatException( "BlurFilter uses reserved bits" );
            }
        }