Class TiffJpegImageOptions
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.pdf2image.ImageOptions
-
- com.pdftools.pdf2image.TiffJpegImageOptions
-
public class TiffJpegImageOptions extends ImageOptions
The settings for TIFF output images using the JPEG compression algorithm
TIFF allows images to be compressed with JPEG (Joint Photographic Experts Group), which is a lossy compression algorithm. JPEG provides a high compression ratio for 8 and 24 bit images. It is best suited for TIFFs containing photographs and little or no text.
For the output file name, it is recommended to use the file extension ".tif".
-
-
Constructor Summary
Constructors Constructor Description TiffJpegImageOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JpegColorSpace
getColorSpace()
The color space of the output image (Getter)int
getJpegQuality()
The JPEG quality factor (Getter)void
setColorSpace(JpegColorSpace value)
The color space of the output image (Setter)void
setJpegQuality(int value)
The JPEG quality factor (Setter)-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getJpegQuality
public int getJpegQuality()
The JPEG quality factor (Getter)
Get or set the JPEG compression quality. Valid values are
1
, or100
, or in between.Default:
85
-
setJpegQuality
public void setJpegQuality(int value)
The JPEG quality factor (Setter)
Get or set the JPEG compression quality. Valid values are
1
, or100
, or in between.Default:
85
- Throws:
java.lang.IllegalArgumentException
- The given value is smaller than 1 or greater than 100.
-
getColorSpace
public JpegColorSpace getColorSpace()
The color space of the output image (Getter)
Get or set the color space. If null, the blending color space of the page is used.
Default:
JpegColorSpace.RGB
-
setColorSpace
public void setColorSpace(JpegColorSpace value)
The color space of the output image (Setter)
Get or set the color space. If null, the blending color space of the page is used.
Default:
JpegColorSpace.RGB
-
-