Beispiel #1
0
        ////////////////////////////////////////////////////////////////////
        // Draw heart
        ////////////////////////////////////////////////////////////////////

        private void DrawHeart()
        {
            // save graphics state
            Contents.SaveGraphicsState();

            // draw heart
            // The first argument are the coordinates of the centerline of the heart shape.
            // The DrawHeart is a special case of DrawDoubleBezierPath method.
            Contents.SetColorNonStroking(Color.HotPink);
            Contents.DrawHeart(new LineD(new PointD(4.98, 5.1), new PointD(4.98, 6.0)), PaintOp.CloseFillStroke);

            // restore graphics state
            Contents.RestoreGraphicsState();
            return;
        }