コード例 #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 is null)
            {
                throw new ArgumentNullException(nameof(cs));
            }
            if (table is null)
            {
                throw new ArgumentNullException(nameof(table));
            }

            info = userInfo;
            gch  = GCHandle.Alloc(this);
            InitializeHandle(CGPDFScannerCreate(cs.Handle, table.Handle, GCHandle.ToIntPtr(gch)));
        }