Esempio n. 1
0
        public DefineShape4Tag(SwfReader r)
        {
            this.ShapeId     = 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();
        }
Esempio n. 2
0
        public DefineShape4Tag(SwfReader r)
        {
            this.ShapeId = 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();
        }
Esempio n. 3
0
        public DefineFontAlignZonesTag(SwfReader r, Dictionary<uint, DefineFont2_3> fonts)
        {
            Fonts = fonts;

            FontId = r.GetUI16();
            CSMTableHint = r.GetBits(2);
            r.SkipBits(6);
            r.Align();

            DefineFont2_3 font = Fonts[FontId];
            uint glyphCount = font.NumGlyphs;

            ZoneTable = new ZoneRecord[glyphCount];
            for (int i = 0; i < glyphCount; i++)
            {
                ZoneTable[i] = new ZoneRecord(r);
            }
        }
Esempio n. 4
0
        public DefineFontAlignZonesTag(SwfReader r, Dictionary <uint, DefineFont2_3> fonts)
        {
            Fonts = fonts;

            FontId       = r.GetUI16();
            CSMTableHint = r.GetBits(2);
            r.SkipBits(6);
            r.Align();

            DefineFont2_3 font       = Fonts[FontId];
            uint          glyphCount = font.NumGlyphs;

            ZoneTable = new ZoneRecord[glyphCount];
            for (int i = 0; i < glyphCount; i++)
            {
                ZoneTable[i] = new ZoneRecord(r);
            }
        }