Package io.scanbot.sdk.tiff
Class TIFFWriter
-
- All Implemented Interfaces:
public final class TIFFWriterAdds ability to save images as TIFF
-
-
Field Summary
Fields Modifier and Type Field Description private final FileIOProcessorfileIOProcessor
-
Constructor Summary
Constructors Constructor Description TIFFWriter(FileIOProcessor fileIOProcessor)
-
Method Summary
Modifier and Type Method Description final FileIOProcessorgetFileIOProcessor()final BooleanwriteTIFF(Array<Bitmap> images, File targetFile, TIFFImageWriterParameters parameters)Write single-page or multi-page TIFF file. final BooleanwriteTIFF(Array<Uri> sourceImages, Boolean sourceFilesEncrypted, File targetFile, TIFFImageWriterParameters parameters)Write single-page or multi-page TIFF file. final BooleanwriteTIFF(Array<File> sourceImages, Boolean sourceFilesEncrypted, File targetFile, TIFFImageWriterParameters parameters)Write single-page or multi-page TIFF file. final BooleanwriteTIFF(Document document, File targetFile, TIFFImageWriterParameters parameters)Write single-page or multi-page TIFF file form Document. final ByteArraytiffByteArray(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 betrueif 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 betrueif 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.
-
-
-
-