Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
 public unsafe CGContextPDF(NSUrl url, CGPDFInfo info) :
     this(url, null, info)
 {
 }
 public unsafe CGContextPDF(NSUrl url, CGRect mediaBox, CGPDFInfo info) :
     this(url, &mediaBox, info)
 {
 }
 unsafe CGContextPDF(NSUrl url, CGRect *mediaBox, CGPDFInfo info)
 {
     using (var dict = info == null ? null : info.ToDictionary())
         Handle = CGPDFContextCreateWithURL(url.GetHandle(), mediaBox, dict.GetHandle());
 }
 public unsafe CGContextPDF(CGDataConsumer dataConsumer, CGPDFInfo info) :
     this(dataConsumer, null, info)
 {
 }
 public unsafe CGContextPDF(CGDataConsumer dataConsumer, CGRect mediaBox, CGPDFInfo info) :
     this(dataConsumer, &mediaBox, info)
 {
 }
Example #10
0
 unsafe CGContextPDF(CGDataConsumer dataConsumer, CGRect *mediaBox, CGPDFInfo info)
 {
     using (var dict = info == null ? null : info.ToDictionary())
         Handle = CGPDFContextCreate(dataConsumer.GetHandle(), mediaBox, dict.GetHandle());
 }
Example #11
0
 public unsafe CGContextPDF(NSUrl url, CGPDFInfo info)
     : this(url, null, info)
 {
 }
Example #12
0
 public unsafe CGContextPDF(NSUrl url, CGRect mediaBox, CGPDFInfo info)
     : this(url, &mediaBox, info)
 {
 }
Example #13
0
 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);
 }