Exemplo n.º 1
0
        public override void Read(SwfReader reader, SwfTagCode shapeType)
        {
            if ((State & SwfStyleState.HasMoveTo) != 0)
            {
                int bits = (int)reader.ReadUB(5);
                DeltaX = reader.ReadTwip(bits);
                DeltaY = reader.ReadTwip(bits);
                _bits  = bits;
                _read  = true;
            }

            if ((State & SwfStyleState.HasFillStyle0) != 0)
            {
                FillStyle0 = reader.ReadFillStyle();
            }

            if ((State & SwfStyleState.HasFillStyle1) != 0)
            {
                FillStyle1 = reader.ReadFillStyle();
            }

            if ((State & SwfStyleState.HasLineStyle) != 0)
            {
                LineStyle = reader.ReadLineStyle();
            }

            if ((State & SwfStyleState.HasNewStyles) != 0)
            {
                Styles = new SwfStyles();
                Styles.Read(reader, shapeType);
            }
        }