public class TiffConverter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TiffConverter.ConverterOptions |
| Constructor and Description |
|---|
TiffConverter() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
convertBmpTiff(java.lang.String bmp,
java.lang.String tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
convertBmpTiffFd(int, int, ConverterOptions, IProgressListener).
Convert bmp to tiff file. Uses direct data read method, that decrease memory usage. |
static boolean |
convertBmpTiffFd(int bmp,
int tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Convert bmp to tiff file.
|
static boolean |
convertJpgTiff(java.lang.String jpg,
java.lang.String tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
convertJpgTiffFd(int, int, ConverterOptions, IProgressListener).
Convert jpeg to tiff file. Uses direct data read method, that decrease memory usage. |
static boolean |
convertJpgTiffFd(int jpg,
int tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Convert jpeg to tiff file.
|
static boolean |
convertPngTiff(java.lang.String png,
java.lang.String tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
convertPngTiffFd(int, int, ConverterOptions, IProgressListener).
Convert png to tiff file. Uses direct data read method, that decrease memory usage. |
static boolean |
convertPngTiffFd(int png,
int tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Convert png to tiff file.
|
static boolean |
convertTiffBmp(java.lang.String tiff,
java.lang.String bmp,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
convertTiffBmpFd(int, int, ConverterOptions, IProgressListener).
Convert tiff to bmp file. Uses direct data read method, that decrease memory usage |
static boolean |
convertTiffBmpFd(int tiff,
int bmp,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Convert tiff to bmp file.
|
static boolean |
convertTiffJpg(java.lang.String tiff,
java.lang.String jpg,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
convertTiffJpgFd(int, int, ConverterOptions, IProgressListener).
Convert tiff to jpeg file. Uses direct data read method, that decrease memory usage |
static boolean |
convertTiffJpgFd(int tiff,
int jpg,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Convert tiff to jpg file.
|
static boolean |
convertTiffPng(java.lang.String tiff,
java.lang.String png,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
convertTiffPngFd(int, int, ConverterOptions, IProgressListener).
Convert tiff to png file. Uses direct data read method, that decrease memory usage |
static boolean |
convertTiffPngFd(int tiff,
int png,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Convert tiff to png file.
|
static boolean |
convertToTiff(java.io.File inFile,
java.io.File outFile,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
convertToTiff(int, int, ConverterOptions, IProgressListener).
Convert any of supported formats from ImageFormat to tiff |
static boolean |
convertToTiff(int inFd,
int outFd,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Convert any of supported formats from
ImageFormat to tiff
This method don't close file descriptor |
static boolean |
convertToTiff(java.lang.String inPath,
java.lang.String outPath,
TiffConverter.ConverterOptions options,
IProgressListener listener)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
convertToTiff(int, int, ConverterOptions, IProgressListener).
Convert any of supported formats from ImageFormat to tiff |
static ImageFormat |
getImageType(java.lang.String path)
Deprecated.
Since Android Q is released. You can use this method with scoped storage.
Otherwise use
getImageTypeFd(int).
Return type of file. |
static ImageFormat |
getImageTypeFd(int fd)
Return type of file.
|
public static boolean convertToTiff(java.io.File inFile,
java.io.File outFile,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
convertToTiff(int, int, ConverterOptions, IProgressListener).
Convert any of supported formats from ImageFormat to tiffinFile - path to income tiff fileoutFile - path to outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertToTiff(java.lang.String inPath,
java.lang.String outPath,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
convertToTiff(int, int, ConverterOptions, IProgressListener).
Convert any of supported formats from ImageFormat to tiffinPath - path to income tiff fileoutPath - path to outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertToTiff(int inFd,
int outFd,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
ImageFormat to tiff
This method don't close file descriptorinFd - file descriptor that represent income fileoutFd - file descriptor that represent outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertTiffPng(java.lang.String tiff,
java.lang.String png,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
convertTiffPngFd(int, int, ConverterOptions, IProgressListener).
Convert tiff to png file. Uses direct data read method, that decrease memory usagetiff - path to income tiff filepng - path to outcome png fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertTiffPngFd(int tiff,
int png,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
tiff - file descriptor that represent income tiff filepng - file descriptor that represent outcome png fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertPngTiff(java.lang.String png,
java.lang.String tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
convertPngTiffFd(int, int, ConverterOptions, IProgressListener).
Convert png to tiff file. Uses direct data read method, that decrease memory usage.png - path to income png filetiff - path to outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertPngTiffFd(int png,
int tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
png - file descriptor that represent income png filetiff - file descriptor that represent outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertTiffJpg(java.lang.String tiff,
java.lang.String jpg,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
convertTiffJpgFd(int, int, ConverterOptions, IProgressListener).
Convert tiff to jpeg file. Uses direct data read method, that decrease memory usagetiff - path to income tiff filejpg - path to outcome jpeg fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertTiffJpgFd(int tiff,
int jpg,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
tiff - file descriptor that represent income tiff filejpg - file descriptor that represent outcome jpg fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertJpgTiff(java.lang.String jpg,
java.lang.String tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
convertJpgTiffFd(int, int, ConverterOptions, IProgressListener).
Convert jpeg to tiff file. Uses direct data read method, that decrease memory usage.jpg - path to income jpeg filetiff - path to outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertJpgTiffFd(int jpg,
int tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
jpg - file descriptor that represent income jpeg filetiff - file descriptor that represent outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertTiffBmp(java.lang.String tiff,
java.lang.String bmp,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
convertTiffBmpFd(int, int, ConverterOptions, IProgressListener).
Convert tiff to bmp file. Uses direct data read method, that decrease memory usagetiff - path to income tiff filebmp - path to outcome jpeg fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertTiffBmpFd(int tiff,
int bmp,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
tiff - file descriptor that represent income tiff filebmp - file descriptor that represent outcome bmp fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertBmpTiff(java.lang.String bmp,
java.lang.String tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
convertBmpTiffFd(int, int, ConverterOptions, IProgressListener).
Convert bmp to tiff file. Uses direct data read method, that decrease memory usage.bmp - path to income bmp filetiff - path to outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static boolean convertBmpTiffFd(int bmp,
int tiff,
TiffConverter.ConverterOptions options,
IProgressListener listener)
throws CantOpenFileException,
DecodeTiffException,
NotEnoughtMemoryException
bmp - file descriptor that represent income bmp filetiff - file descriptor that represent outcome tiff fileoptions - converter optionslistener - listener which will receive converting progressCantOpenFileExceptionDecodeTiffExceptionNotEnoughtMemoryExceptionpublic static ImageFormat getImageType(java.lang.String path)
getImageTypeFd(int).
Return type of file.path - - file pathImageFormat or ImageFormat.UNKNOWNpublic static ImageFormat getImageTypeFd(int fd)
fd - - file descriptor for fileImageFormat or ImageFormat.UNKNOWN