Exemplo n.º 1
0
 BaseFilter IFilterVisitor <ISwfStreamReader, BaseFilter> .Visit(BevelFilter filter, ISwfStreamReader reader)
 {
     filter.ShadowColor     = reader.ReadRGBA();
     filter.HighlightColor  = reader.ReadRGBA();
     filter.BlurX           = reader.ReadFixed();
     filter.BlurY           = reader.ReadFixed();
     filter.Angle           = reader.ReadFixed();
     filter.Distance        = reader.ReadFixed();
     filter.Strength        = reader.ReadFixedPoint8();
     filter.InnerShadow     = reader.ReadBit();
     filter.Knockout        = reader.ReadBit();
     filter.CompositeSource = reader.ReadBit();
     filter.OnTop           = reader.ReadBit();
     filter.Passes          = reader.ReadUnsignedBits(4);
     return(filter);
 }
Exemplo n.º 2
0
 object IFilterVisitor <ISwfStreamWriter, object> .Visit(BevelFilter filter, ISwfStreamWriter writer)
 {
     writer.WriteRGBA(filter.ShadowColor);
     writer.WriteRGBA(filter.HighlightColor);
     writer.WriteFixed(filter.BlurX);
     writer.WriteFixed(filter.BlurY);
     writer.WriteFixed(filter.Angle);
     writer.WriteFixed(filter.Distance);
     writer.WriteFixedPoint8(filter.Strength);
     writer.WriteBit(filter.InnerShadow);
     writer.WriteBit(filter.Knockout);
     writer.WriteBit(filter.CompositeSource);
     writer.WriteBit(filter.OnTop);
     writer.WriteUnsignedBits(filter.Passes, 4);
     return(null);
 }