2
// generate-pdf.cs: This sample renders a red circle in a PDF file
7
using MonoMac.CoreGraphics;
8
using MonoMac.Foundation;
10
class DrawCircleInPDF {
14
var pdf = new CGContextPDF (NSUrl.FromFilename ("demo.pdf"), new RectangleF (0, 0, 617, 792));
17
pdf.SetRGBFillColor (1, 0, 0, 1);
18
pdf.AddArc (300, 300, 100, 0, (float) (2 * Math.PI), true);
b'\\ No newline at end of file'