예제 #1
0
        public CGPDFContentStream(CGPDFStream stream, NSDictionary streamResources = null, CGPDFContentStream parent = null)
        {
            if (stream == null)
                throw new ArgumentNullException ("stream");

            var dh = streamResources == null ? IntPtr.Zero : streamResources.Handle;
            var ph = parent == null ? IntPtr.Zero : parent.Handle;
            Handle = CGPDFContentStreamCreateWithStream (stream.Handle, dh, ph);
        }
예제 #2
0
        public CGPDFScanner(CGPDFContentStream cs, CGPDFOperatorTable table, object userInfo)
        {
            if (cs == null)
                throw new ArgumentNullException ("cs");
            if (table == null)
                throw new ArgumentNullException ("table");

            info = userInfo;
            gch = GCHandle.Alloc (this);
            Handle = CGPDFScannerCreate (cs.Handle, table.Handle, GCHandle.ToIntPtr (gch));
        }
예제 #3
0
        public CGPDFScanner(CGPDFContentStream cs, CGPDFOperatorTable table, object userInfo)
        {
            if (cs == null)
            {
                throw new ArgumentNullException("cs");
            }
            if (table == null)
            {
                throw new ArgumentNullException("table");
            }

            info   = userInfo;
            gch    = GCHandle.Alloc(this);
            Handle = CGPDFScannerCreate(cs.Handle, table.Handle, GCHandle.ToIntPtr(gch));
        }
예제 #4
0
        public CGPDFContentStream(CGPDFStream stream, NSDictionary streamResources = null, CGPDFContentStream parent = null)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            var dh = streamResources == null ? IntPtr.Zero : streamResources.Handle;
            var ph = parent == null ? IntPtr.Zero : parent.Handle;

            Handle = CGPDFContentStreamCreateWithStream(stream.Handle, dh, ph);
        }