Package io.scanbot.sdk.tiff
Class TIFFWriter
-
- All Implemented Interfaces:
public final class TIFFWriter
Adds ability to save images as TIFF
-
-
Field Summary
Fields Modifier and Type Field Description private final FileIOProcessor
fileIOProcessor
-
Constructor Summary
Constructors Constructor Description TIFFWriter(FileIOProcessor fileIOProcessor)
-
Method Summary
Modifier and Type Method Description final FileIOProcessor
getFileIOProcessor()
final Boolean
writeTIFF(Array<Bitmap> images, File targetFile, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file. final Boolean
writeTIFF(Array<Uri> sourceImages, Boolean sourceFilesEncrypted, File targetFile, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file. final Boolean
writeTIFF(Array<File> sourceImages, Boolean sourceFilesEncrypted, File targetFile, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file. final Boolean
writeTIFF(Document document, File targetFile, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file form Document. final ByteArray
tiffByteArray(Array<Bitmap> images, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file to the buffer. -
-
Constructor Detail
-
TIFFWriter
TIFFWriter(FileIOProcessor fileIOProcessor)
-
-
Method Detail
-
getFileIOProcessor
final FileIOProcessor getFileIOProcessor()
-
writeTIFF
final Boolean writeTIFF(Array<Bitmap> images, File targetFile, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file.
- Parameters:
images
- The array of source images from what TIFF file is to be created.targetFile
- File for newly created TIFF file.parameters
- TIFFImageWriterParameters for TIFF file creation.
-
writeTIFF
final Boolean writeTIFF(Array<Uri> sourceImages, Boolean sourceFilesEncrypted, File targetFile, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file.
- Parameters:
sourceImages
- The array of source image Uris from what TIFF file is to be created.sourceFilesEncrypted
- should betrue
if source files are encrypted, otherwise -false
.targetFile
- File for newly created TIFF file.parameters
- TIFFImageWriterParameters for TIFF file creation.
-
writeTIFF
final Boolean writeTIFF(Array<File> sourceImages, Boolean sourceFilesEncrypted, File targetFile, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file.
- Parameters:
sourceImages
- The array of source files from what TIFF file is to be created.sourceFilesEncrypted
- should betrue
if source files are encrypted, otherwise -false
.targetFile
- File for newly created TIFF file.parameters
- TIFFImageWriterParameters for TIFF file creation.
-
writeTIFF
final Boolean writeTIFF(Document document, File targetFile, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file form Document.
- Parameters:
document
- The Document from what TIFF file is to be created.targetFile
- optional File for newly created TIFF file.parameters
- TIFFImageWriterParameters for TIFF file creation.
-
tiffByteArray
final ByteArray tiffByteArray(Array<Bitmap> images, TIFFImageWriterParameters parameters)
Write single-page or multi-page TIFF file to the buffer.
- Parameters:
images
- The array of source images from what TIFF file is to be created.parameters
- TIFFImageWriterParameters for TIFF file creation.
-
-
-
-