Beispiel #1
0
        public void AddPath(GraphicsPath path, PathPainting paint)
        {
            _paint = paint;
            var b = path.GetBounds();

            if (b.X < X1)
            {
                X1 = b.X;
            }
            if (b.Right > X2)
            {
                X2 = b.Right;
            }
            if (b.Y < Y1)
            {
                Y1 = b.Y;
            }
            if (b.Bottom > Y2)
            {
                Y2 = b.Bottom;
            }
            PathRendering.Render(path, this, PathRenderFeatures.Quad);
        }
Beispiel #2
0
        public SwfShapeSetupRecord(PathPainting paint, float dx, float dy)
        {
            if ((paint & PathPainting.Stroke) != 0)
            {
                LineStyle = 1;
                State    |= SwfStyleState.HasLineStyle;
            }

            if ((paint & PathPainting.Fill) != 0)
            {
                FillStyle0 = 1;
                FillStyle1 = 0;
                State     |= SwfStyleState.HasFillStyle0;
                State     |= SwfStyleState.HasFillStyle1;
            }

            if (dx != 0 || dy != 0)
            {
                State |= SwfStyleState.HasMoveTo;
                DeltaX = dx;
                DeltaY = dy;
            }
        }