コード例 #1
0
 unsafe CGContextPDF(NSUrl url, CGRect *mediaBox, CGPDFInfo info)
 {
     using (var dict = info == null ? null : info.ToDictionary())
         Handle = CGPDFContextCreateWithURL(url.GetHandle(), mediaBox, dict.GetHandle());
 }
コード例 #2
0
 unsafe static IntPtr Create(NSUrl?url, CGRect *mediaBox, CGPDFInfo?info)
 {
     using (var dict = info?.ToDictionary())
         return(CGPDFContextCreateWithURL(url.GetHandle(), mediaBox, dict.GetHandle()));
 }
コード例 #3
0
 unsafe CGContextPDF(CGDataConsumer dataConsumer, CGRect *mediaBox, CGPDFInfo info)
 {
     using (var dict = info == null ? null : info.ToDictionary())
         Handle = CGPDFContextCreate(dataConsumer.GetHandle(), mediaBox, dict.GetHandle());
 }
コード例 #4
0
 unsafe static IntPtr Create(CGDataConsumer?dataConsumer, CGRect *mediaBox, CGPDFInfo?info)
 {
     using (var dict = info?.ToDictionary())
         return(CGPDFContextCreate(dataConsumer.GetHandle(), mediaBox, dict.GetHandle()));
 }