예제 #1
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));
        }
예제 #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));
        }