unsafe CGContextPDF(NSUrl url, CGRect *mediaBox, CGPDFInfo info) { if (url == null) throw new ArgumentNullException ("url"); using (var dict = info == null ? null : info.ToDictionary ()) Handle = CGPDFContextCreateWithURL (url.Handle, mediaBox, dict == null ? IntPtr.Zero : dict.Handle); }
public unsafe CGContextPDF(CGDataConsumer dataConsumer, CGRect mediaBox, CGPDFInfo info) { if (dataConsumer == null) throw new ArgumentNullException ("dataConsumer"); using (var dict = info == null ? null : info.ToDictionary ()) Handle = CGPDFContextCreate (dataConsumer.Handle, &mediaBox, dict == null ? IntPtr.Zero : dict.Handle); }
unsafe CGContextPDF(NSUrl url, CGRect *mediaBox, CGPDFInfo info) { if (url == null) { throw new ArgumentNullException("url"); } using (var dict = info == null ? null : info.ToDictionary()) Handle = CGPDFContextCreateWithURL(url.Handle, mediaBox, dict == null ? IntPtr.Zero : dict.Handle); }
public unsafe CGContextPDF(CGDataConsumer dataConsumer, CGRect mediaBox, CGPDFInfo info) { if (dataConsumer == null) { throw new ArgumentNullException("dataConsumer"); } using (var dict = info == null ? null : info.ToDictionary()) Handle = CGPDFContextCreate(dataConsumer.Handle, &mediaBox, dict == null ? IntPtr.Zero : dict.Handle); }
unsafe CGContextPDF(NSUrl url, CGRect *mediaBox, CGPDFInfo info) { using (var dict = info == null ? null : info.ToDictionary()) Handle = CGPDFContextCreateWithURL(url.GetHandle(), mediaBox, dict.GetHandle()); }
unsafe CGContextPDF(CGDataConsumer dataConsumer, CGRect *mediaBox, CGPDFInfo info) { using (var dict = info == null ? null : info.ToDictionary()) Handle = CGPDFContextCreate(dataConsumer.GetHandle(), mediaBox, dict.GetHandle()); }
public static void BeginPDFContext(string file, CGRect bounds, CGPDFInfo documentInfo) { using (var dict = documentInfo == null ? null : documentInfo.ToDictionary ()) using (var nsstr = new NSString (file)) UIGraphicsBeginPDFContextToFile (nsstr.Handle, bounds, dict == null ? IntPtr.Zero : dict.Handle); }