Convert Leptonica PIX data into Java BufferedImage
This snippet allows us to convert Leptonica PIX data into Java BufferedImage, in my case the pix->data could be compressed using zlib so I am decompressing before recreating image. We are assuming here that this is bi-tonal image(1 bpp) File used in example : Pix data compressed used ZLib Pix data decompressed Image represented by …
Convert Leptonica PIX data into Java BufferedImage Read More »