Exemplo n.º 1
0
 public GlowFilter(SwfStream stream)
 {
     GlowColor = stream.ReadRGBA();
     BlurX = stream.ReadFixed();
     BlurY = stream.ReadFixed();
     Strength = stream.ReadFixedHalf();
     mFlags = stream.ReadByte();
 }
Exemplo n.º 2
0
 public DropShadowFilter(SwfStream stream)
 {
     DropShadowColor = stream.ReadRGBA();
     BlurX = stream.ReadFixed();
     BlurY = stream.ReadFixed();
     Angle = stream.ReadFixed();
     Distance = stream.ReadFixed();
     Strength = stream.ReadFixedHalf();
     mFlags = stream.ReadByte();
 }
Exemplo n.º 3
0
 public BevelFilter(SwfStream stream)
 {
     ShadowColor = stream.ReadRGBA();
     HighlightColor = stream.ReadRGBA();
     BlurX = stream.ReadFixed();
     BlurY = stream.ReadFixed();
     Angle = stream.ReadFixed();
     Distance = stream.ReadFixed();
     Strength = stream.ReadFixedHalf();
     mFlags = stream.ReadByte();
 }
Exemplo n.º 4
0
        public GradientGlowBevelFilter(SwfStream stream, bool bevel)
        {
            mId = bevel ? ID.GradientBevel : ID.GradientGlow;

            byte numColors = stream.ReadByte();
            GlowColors = stream.ReadRGBAArray(numColors);
            GlowRatios = stream.ReadByteArray(numColors);
            BlurX = stream.ReadFixed();
            BlurY = stream.ReadFixed();
            Strength = stream.ReadFixedHalf();
            mFlags = stream.ReadByte();
        }
Exemplo n.º 5
0
 public BlurFilter(SwfStream stream)
 {
     BlurX = stream.ReadFixed();
     BlurY = stream.ReadFixed();
     Passes = (byte)(stream.ReadByte() >> 3);
 }