Exemplo n.º 1
0
 BaseFilter IFilterVisitor <ISwfStreamReader, BaseFilter> .Visit(BlurFilter filter, ISwfStreamReader reader)
 {
     filter.BlurX    = reader.ReadFixed();
     filter.BlurY    = reader.ReadFixed();
     filter.Passes   = reader.ReadUnsignedBits(5);
     filter.Reserved = reader.ReadUnsignedBits(3);
     return(filter);
 }
Exemplo n.º 2
0
        object IFilterVisitor <ISwfStreamWriter, object> .Visit(BlurFilter filter, ISwfStreamWriter writer)
        {
            writer.WriteFixed(filter.BlurX);
            writer.WriteFixed(filter.BlurY);

            writer.WriteUnsignedBits(filter.Passes, 5);
            writer.WriteUnsignedBits(filter.Reserved, 3);
            return(null);
        }