Пример #1
0
        private void button16_Click(object sender, System.EventArgs e)
        {
            C1.C1Pdf.C1PdfDocument pdf = new C1.C1Pdf.C1PdfDocument();

            // create an array with some points
            PointF[] points = new PointF[]
            {
                new PointF(100, 100), new PointF(300, 100), new PointF(200, 200)
            };

            // fill and draw a polygon
            pdf.FillPolygon(Brushes.Beige, points);
            pdf.DrawPolygon(Pens.Black, points);

            // save the document to a file
            string fileName = tempdir + "poly.pdf";

            pdf.Save(fileName);
            System.Diagnostics.Process.Start(fileName);
        }