BaseFilter IFilterVisitor <ISwfStreamReader, BaseFilter> .Visit(GlowFilter filter, ISwfStreamReader reader) { filter.Color = reader.ReadRGBA(); filter.BlurX = reader.ReadFixed(); filter.BlurY = reader.ReadFixed(); filter.Strength = reader.ReadFixedPoint8(); filter.InnerGlow = reader.ReadBit(); filter.Knockout = reader.ReadBit(); filter.CompositeSource = reader.ReadBit(); filter.Passes = reader.ReadUnsignedBits(5); return(filter); }
object IFilterVisitor <ISwfStreamWriter, object> .Visit(GlowFilter filter, ISwfStreamWriter writer) { writer.WriteRGBA(filter.Color); writer.WriteFixed(filter.BlurX); writer.WriteFixed(filter.BlurY); writer.WriteFixedPoint8(filter.Strength); writer.WriteBit(filter.InnerGlow); writer.WriteBit(filter.Knockout); writer.WriteBit(filter.CompositeSource); writer.WriteUnsignedBits(filter.Passes, 5); return(null); }