public class JPEG2000Options extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COLORSPACE_GRAY |
static int |
COLORSPACE_RGB |
static int |
FILETYPE_J2K |
static int |
FILETYPE_JP2 |
float |
mQuality |
Constructor and Description |
---|
JPEG2000Options(int dpi,
int colorSpace,
int fileType,
float quality)
Create a new JPEG2000Options object setting all the possible options.
|
Modifier and Type | Method and Description |
---|---|
int |
getColorSpace()
Returns the color space to use when writing the JPEG 2000 image.
|
int |
getDPI()
Returns the DPI value option.
|
int |
getFileType()
Returns the type of JPEG 2000 file to create.
|
float |
getQuality()
Returns the quality value that should be used when compressing the image.
|
public float mQuality
public static final int FILETYPE_JP2
public static final int FILETYPE_J2K
public static final int COLORSPACE_RGB
public static final int COLORSPACE_GRAY
public JPEG2000Options(int dpi, int colorSpace, int fileType, float quality)
dpi
- The DPI value to use when converting the PDF page to an image.colorSpace
- The color space to use when compressing the image. This can be COLORSPACE_RGB or COLORSPACE_GRAY.fileType
- The type of file in the JPEG 2000 format. This can be FILETYPE_JP2 or FILETYPE_J2K.quality
- The quality to use on compression, this is a value between 0.1 and 1.0.public int getDPI()
public int getFileType()
public int getColorSpace()
public float getQuality()