コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }