|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.vietocr.ImageIOHelper
public class ImageIOHelper
Constructor Summary | |
---|---|
ImageIOHelper()
|
Method Summary | |
---|---|
static java.util.List<java.io.File> |
createTiffFiles(java.io.File imageFile,
int index)
Creates a list of TIFF image files from an image file. |
static java.util.List<java.io.File> |
createTiffFiles(java.util.List<javax.imageio.IIOImage> imageList,
int index)
Creates a list of TIFF image files from a list of IIOImage objects. |
static java.util.List<java.io.File> |
createTiffFiles(java.util.List<javax.imageio.IIOImage> imageList,
int index,
int dpiX,
int dpiY)
|
static java.util.List<javax.imageio.IIOImage> |
getIIOImageList(java.io.File imageFile)
Gets a list of IIOImage objects for an image file. |
static java.nio.ByteBuffer |
getImageByteBuffer(javax.imageio.IIOImage image)
Gets pixel data of an IIOImage object. |
static void |
mergeTiff(java.io.File[] inputImages,
java.io.File outputTiff)
Merges multiple images into one TIFF image. |
static java.util.Map<java.lang.String,java.lang.String> |
readImageData(javax.imageio.IIOImage oimage)
Reads image meta data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageIOHelper()
Method Detail |
---|
public static java.util.List<java.io.File> createTiffFiles(java.io.File imageFile, int index) throws java.io.IOException
imageFile
- input image fileindex
- an index of the page; -1 means all pages, as in a multi-page TIFF image
java.lang.Exception
java.io.IOException
public static java.util.List<java.io.File> createTiffFiles(java.util.List<javax.imageio.IIOImage> imageList, int index) throws java.io.IOException
IIOImage
objects.
imageList
- a list of IIOImage
objectsindex
- an index of the page; -1 means all pages
java.lang.Exception
java.io.IOException
public static java.util.List<java.io.File> createTiffFiles(java.util.List<javax.imageio.IIOImage> imageList, int index, int dpiX, int dpiY) throws java.io.IOException
java.io.IOException
public static java.nio.ByteBuffer getImageByteBuffer(javax.imageio.IIOImage image) throws java.io.IOException
IIOImage
object.
image
- an IIOImage
object
java.lang.Exception
java.io.IOException
public static java.util.List<javax.imageio.IIOImage> getIIOImageList(java.io.File imageFile) throws java.io.IOException
IIOImage
objects for an image file.
imageFile
- input image file. It can be any of the supported formats, including TIFF, JPEG, GIF, PNG, BMP, JPEG, and PDF if GPL Ghostscript is installed
IIOImage
objects
java.lang.Exception
java.io.IOException
public static void mergeTiff(java.io.File[] inputImages, java.io.File outputTiff) throws java.io.IOException
inputImages
- an array of image filesoutputTiff
- the output TIFF file
java.lang.Exception
java.io.IOException
public static java.util.Map<java.lang.String,java.lang.String> readImageData(javax.imageio.IIOImage oimage)
oimage
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |