Ejemplo n.º 1
0
        public static int pixaAnyColormaps(this Pixa pixa, out int phascmap)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaAnyColormaps((HandleRef)pixa, out phascmap));
        }
Ejemplo n.º 2
0
        public static int pixaSizeRange(this Pixa pixa, out int pminw, out int pminh, out int pmaxw, out int pmaxh)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaSizeRange((HandleRef)pixa, out pminw, out pminh, out pmaxw, out pmaxh));
        }
Ejemplo n.º 3
0
        public static int pixaGetDepthInfo(this Pixa pixa, out int pmaxdepth, out int psame)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaGetDepthInfo((HandleRef)pixa, out pmaxdepth, out psame));
        }
Ejemplo n.º 4
0
        // Render two pixa side-by-side for comparison*
        public static int pixaCompareInPdf(this Pixa pixa1, Pixa pixa2, int nx, int ny, int tw, int spacing, int border, int fontsize, string fileout)
        {
            if (null == pixa1 || null == pixa2)
            {
                throw new ArgumentNullException("pixa1, pixa2 cannot be null");
            }

            return(Native.DllImports.pixaCompareInPdf((HandleRef)pixa1, (HandleRef)pixa2, nx, ny, tw, spacing, border, fontsize, fileout));
        }
Ejemplo n.º 5
0
        public static int pixaCountText(this Pixa pixa, out int pntext)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaCountText((HandleRef)pixa, out pntext));
        }
Ejemplo n.º 6
0
        public static int pixaSelectToPdf(this Pixa pixas, int first, int last, int res, float scalefactor, int type, int quality, uint color, int fontsize, string fileout)
        {
            if (null == pixas)
            {
                throw new ArgumentNullException("pixas cannot be null");
            }

            return(Native.DllImports.pixaSelectToPdf((HandleRef)pixas, first, last, res, scalefactor, type, quality, color, fontsize, fileout));
        }
Ejemplo n.º 7
0
        public static int pixaClear(this Pixa pixa)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaClear((HandleRef)pixa));
        }
Ejemplo n.º 8
0
        public static int pixaRemovePix(this Pixa pixa, int index)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaRemovePix((HandleRef)pixa, index));
        }
Ejemplo n.º 9
0
        public static int pixaInitFull(this Pixa pixa, Pix pix, Box box)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaInitFull((HandleRef)pixa, (HandleRef)pix, (HandleRef)box));
        }
Ejemplo n.º 10
0
        // 3. Convert multiple images to pdf(one image per page)
        public static int pixaConvertToPdf(this Pixa pixa, int res, float scalefactor, int type, int quality, string title, string fileout)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null.");
            }

            return(Native.DllImports.pixaConvertToPdf((HandleRef)pixa, res, scalefactor, type, quality, title, fileout));
        }
Ejemplo n.º 11
0
        public static int pixaExtendArrayToSize(this Pixa pixa, int size)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("boxa cannot be null");
            }

            return(Native.DllImports.pixaExtendArrayToSize((HandleRef)pixa, size));
        }
Ejemplo n.º 12
0
        // Split pixa into files
        public static int pixaSplitIntoFiles(this Pixa pixas, int nsplit, float scale, int outwidth, int write_pixa, int write_pix, int write_pdf)
        {
            if (null == pixas)
            {
                throw new ArgumentNullException("pixas cannot be null");
            }

            return(Native.DllImports.pixaSplitIntoFiles((HandleRef)pixas, nsplit, scale, outwidth, write_pixa, write_pix, write_pdf));
        }
Ejemplo n.º 13
0
        public static int pixaSetText(this Pixa pixa, Sarray sa)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaSetText((HandleRef)pixa, (HandleRef)sa));
        }
Ejemplo n.º 14
0
        public static int pixaVerifyDepth(this Pixa pixa, out int pmaxdepth)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaVerifyDepth((HandleRef)pixa, out pmaxdepth));
        }
Ejemplo n.º 15
0
        public static int pixaIsFull(this Pixa pixa, out int pfullpa, out int pfullba)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaIsFull((HandleRef)pixa, out pfullpa, out pfullba));
        }
Ejemplo n.º 16
0
        public static int pixaSetBoxa(this Pixa pixa, Boxa boxa, int accesstype)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaSetBoxa((HandleRef)pixa, (HandleRef)boxa, accesstype));
        }
Ejemplo n.º 17
0
        public static IntPtr pixaGetPixArray(this Pixa pixa)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaGetPixArray((HandleRef)pixa));
        }
Ejemplo n.º 18
0
        public static int pixaGetBoxGeometry(this Pixa pixa, int index, out int px, out int py, out int pw, out int ph)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaGetBoxGeometry((HandleRef)pixa, index, out px, out py, out pw, out ph));
        }
Ejemplo n.º 19
0
        public static int pixaGetPixDimensions(this Pixa pixa, int index, out int pw, out int ph, out int pd)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaGetPixDimensions((HandleRef)pixa, index, out pw, out ph, out pd));
        }
Ejemplo n.º 20
0
        public static int pixaChangeRefcount(this Pixa pixa, int delta)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaChangeRefcount((HandleRef)pixa, delta));
        }
Ejemplo n.º 21
0
        // Pixa and Pixaa combination
        public static int pixaJoin(this Pixa pixad, Pixa pixas, int istart, int iend)
        {
            if (null == pixad)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaJoin((HandleRef)pixad, (HandleRef)pixas, istart, iend));
        }
Ejemplo n.º 22
0
        public static IntPtr pixaGetLinePtrs(this Pixa pixa, out int psize)
        {
            if (null == pixa)
            {
                throw new ArgumentNullException("pixa cannot be null");
            }

            return(Native.DllImports.pixaGetLinePtrs((HandleRef)pixa, out psize));
        }
Ejemplo n.º 23
0
        // Decision: table vs text
        public static int pixDecideIfTable(this Pix pixs, Box box, out int pistable, Pixa pixadb)
        {
            if (null == pixs)
            {
                throw new ArgumentNullException("pixs cannot be null.");
            }

            return(Native.DllImports.pixDecideIfTable((HandleRef)pixs, (HandleRef)box, out pistable, (HandleRef)pixadb));
        }
Ejemplo n.º 24
0
        public static int pixaInsertPix(this Pixa pixa, int index, Pix pixs, Box box)
        {
            if (null == pixa ||
                null == pixs)
            {
                throw new ArgumentNullException("pixa, pix cannot be null");
            }

            return(Native.DllImports.pixaInsertPix((HandleRef)pixa, index, (HandleRef)pixs, (HandleRef)box));
        }
Ejemplo n.º 25
0
        public static int pixaWriteMem(out IntPtr pdata, IntPtr psize, Pixa pixa)
        {
            if (IntPtr.Zero == psize ||
                null == pixa)
            {
                throw new ArgumentNullException("psize, pixa cannot be null");
            }

            return(Native.DllImports.pixaWriteMem(out pdata, psize, (HandleRef)pixa));
        }
Ejemplo n.º 26
0
        public static int pixaaReplacePixa(this Pixaa paa, int index, Pixa pixa)
        {
            if (null == paa ||
                null == pixa)
            {
                throw new ArgumentNullException("paa, pixa cannot be null");
            }

            return(Native.DllImports.pixaaReplacePixa((HandleRef)paa, index, (HandleRef)pixa));
        }
Ejemplo n.º 27
0
        public static int pixaWriteStream(IntPtr fp, Pixa pixa)
        {
            if (IntPtr.Zero == fp ||
                null == pixa)
            {
                throw new ArgumentNullException("fp, boxa cannot be null");
            }

            return(Native.DllImports.pixaWriteStream(fp, (HandleRef)pixa));
        }
Ejemplo n.º 28
0
        // Pixaa addition
        public static int pixaaAddPixa(this Pixaa paa, Pixa pixa, int copyflag)
        {
            if (null == paa ||
                null == pixa)
            {
                throw new ArgumentNullException("paa, pixa cannot be null");
            }

            return(Native.DllImports.pixaaAddPixa((HandleRef)paa, (HandleRef)pixa, copyflag));
        }
Ejemplo n.º 29
0
        public static int pixaConvertToPdfData(this Pixa pixa, int res, float scalefactor, int type, int quality, string title, out IntPtr pdata, IntPtr pnbytes)
        {
            if (null == pixa ||
                IntPtr.Zero == pnbytes)
            {
                throw new ArgumentNullException("pixa, pnbytes cannot be null.");
            }

            return(Native.DllImports.pixaConvertToPdfData((HandleRef)pixa, res, scalefactor, type, quality, title, out pdata, pnbytes));
        }
Ejemplo n.º 30
0
        public static int pixaAddBox(this Pixa pixa, Box box, int copyflag)
        {
            if (null == pixa ||
                null == box)
            {
                throw new ArgumentNullException("pixa, box cannot be null");
            }

            return(Native.DllImports.pixaAddBox((HandleRef)pixa, (HandleRef)box, copyflag));
        }