Пример #1
0
 internal DefineShapeTag(SwfReader r)
     : base(TagType.DefineShape)
 {
     this.CharacterId = r.GetUI16();
     this.ShapeBounds = new Rect(r);
     this.Shapes      = new ShapeWithStyle(r, ShapeType.DefineShape1);
     r.Align();
 }
Пример #2
0
        internal DefineShape4Tag(SwfReader r)
            : base(TagType.DefineShape4)
        {
            this.CharacterId = r.GetUI16();
            this.ShapeBounds = new Rect(r);
            this.EdgeBounds  = new Rect(r);

            r.SkipBits(6);
            this.UsesNonScalingStrokes = r.GetBit();
            this.UsesScalingStrokes    = r.GetBit();
            this.Shapes = new ShapeWithStyle(r, ShapeType.DefineShape4);
            r.Align();
        }
Пример #3
0
 internal DefineShapeTag(SwfReader r, uint tagType)
     : base(tagType)
 {
     this.CharacterId = r.GetUI16();
     this.ShapeBounds = new Rect(r);
     if (tagType == TagType.DefineShape)
     {
         this.Shapes = new ShapeWithStyle(r, ShapeType.DefineShape1);
     }
     else if (tagType == TagType.DefineShape2)
     {
         this.Shapes = new ShapeWithStyle(r, ShapeType.DefineShape2);
     }
     else if (tagType == TagType.DefineShape3)
     {
         this.Shapes = new ShapeWithStyle(r, ShapeType.DefineShape3);
     }
     r.Align();
 }