public final class ImageConvertOptions extends CommonConvertOptions<ImageFileType> implements Serializable
Options for conversion to Image file type.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DPI |
Constructor and Description |
---|
ImageConvertOptions()
Initializes new instance of
ImageConvertOptions class. |
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.Drawing.Color |
getBackgroundColor()
Gets background color
|
int |
getBrightness()
Adjusts image brightness.
|
int |
getContrast()
Adjusts image contrast.
|
ImageFlipModes |
getFlipMode()
Image flip mode.
|
float |
getGamma()
Adjusts image gamma.
|
boolean |
getGrayscale()
Indicates whether to convert into grayscale image.
|
int |
getHeight()
Desired image height after conversion.
|
int |
getHorizontalResolution()
Desired image horizontal resolution after conversion.
|
JpegOptions |
getJpegOptions()
Jpeg specific convert options.
|
PsdOptions |
getPsdOptions()
Psd specific convert options.
|
int |
getRotateAngle()
Image rotation angle.
|
TiffOptions |
getTiffOptions()
Tiff specific convert options.
|
boolean |
getUsePdf()
If
true , the input firstly is converted to PDF and after that to desired format. |
int |
getVerticalResolution()
Desired image vertical resolution after conversion.
|
WebpOptions |
getWebpOptions()
Webp specific convert options.
|
int |
getWidth()
Desired image width after conversion.
|
void |
setBackgroundColor(com.aspose.ms.System.Drawing.Color backgroundColor)
Sets background color where supported by the source format
|
void |
setBrightness(int value)
Adjusts image brightness.
|
void |
setContrast(int value)
Adjusts image contrast.
|
void |
setFlipMode(ImageFlipModes value)
Image flip mode.
|
void |
setGamma(float value)
Adjusts image gamma.
|
void |
setGrayscale(boolean value)
Indicates whether to convert into grayscale image.
|
void |
setHeight(int value)
Desired image height after conversion.
|
void |
setHorizontalResolution(int value)
Desired image horizontal resolution after conversion.
|
void |
setJpegOptions(JpegOptions value)
Jpeg specific convert options.
|
void |
setPsdOptions(PsdOptions value)
Psd specific convert options.
|
void |
setRotateAngle(int value)
Image rotation angle.
|
void |
setTiffOptions(TiffOptions value)
Tiff specific convert options.
|
void |
setUsePdf(boolean value)
If
true , the input firstly is converted to PDF and after that to desired format. |
void |
setVerticalResolution(int value)
Desired image vertical resolution after conversion.
|
void |
setWebpOptions(WebpOptions value)
Webp specific convert options.
|
void |
setWidth(int value)
Desired image width after conversion.
|
getPageNumber, getPages, getPagesCount, getWatermark, setPageNumber, setPages, setPagesCount, setWatermark
deepClone, getFormat_ConvertOptions_New, getFormat, setFormat_ConvertOptions_New, setFormat
equals, equals, hashCode, op_Equality, op_Inequality
getClass, notify, notifyAll, toString, wait, wait, wait
getFormat, setFormat
public static final int DEFAULT_DPI
public ImageConvertOptions()
Initializes new instance of ImageConvertOptions
class.
public final int getWidth()
Desired image width after conversion.
public final void setWidth(int value)
Desired image width after conversion.
public final int getHeight()
Desired image height after conversion.
public final void setHeight(int value)
Desired image height after conversion.
public final boolean getUsePdf()
If true
, the input firstly is converted to PDF and after that to desired format.
public final void setUsePdf(boolean value)
If true
, the input firstly is converted to PDF and after that to desired format.
public final int getHorizontalResolution()
Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96 dpi.
public final void setHorizontalResolution(int value)
Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96 dpi.
public final int getVerticalResolution()
Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96 dpi.
public final void setVerticalResolution(int value)
Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96 dpi.
public final TiffOptions getTiffOptions()
Tiff specific convert options.
public final void setTiffOptions(TiffOptions value)
Tiff specific convert options.
public final PsdOptions getPsdOptions()
Psd specific convert options.
public final void setPsdOptions(PsdOptions value)
Psd specific convert options.
public final WebpOptions getWebpOptions()
Webp specific convert options.
public final void setWebpOptions(WebpOptions value)
Webp specific convert options.
public final boolean getGrayscale()
Indicates whether to convert into grayscale image.
public final void setGrayscale(boolean value)
Indicates whether to convert into grayscale image.
public final int getRotateAngle()
Image rotation angle.
public final void setRotateAngle(int value)
Image rotation angle.
public final JpegOptions getJpegOptions()
Jpeg specific convert options.
public final void setJpegOptions(JpegOptions value)
Jpeg specific convert options.
public final ImageFlipModes getFlipMode()
Image flip mode.
public final void setFlipMode(ImageFlipModes value)
Image flip mode.
public final int getBrightness()
Adjusts image brightness.
public final void setBrightness(int value)
Adjusts image brightness.
public final int getContrast()
Adjusts image contrast.
public final void setContrast(int value)
Adjusts image contrast.
public final float getGamma()
Adjusts image gamma.
public final void setGamma(float value)
Adjusts image gamma.
public com.aspose.ms.System.Drawing.Color getBackgroundColor()
public void setBackgroundColor(com.aspose.ms.System.Drawing.Color backgroundColor)
backgroundColor
- background color