ImageConvertOptions
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.conversion.contracts.ValueObject, com.groupdocs.conversion.options.convert.ConvertOptions, com.groupdocs.conversion.options.convert.CommonConvertOptions
All Implemented Interfaces: java.io.Serializable
public final class ImageConvertOptions extends CommonConvertOptions<ImageFileType> implements Serializable
Options for conversion to Image file type.
| Constructor | Description |
|---|---|
| ImageConvertOptions() | Initializes new instance of ImageConvertOptions class. |
| Field | Description |
|---|---|
| DEFAULT_DPI |
| Method | Description |
|---|---|
| getWidth() | Desired image width after conversion. |
| setWidth(int value) | Desired image width after conversion. |
| getHeight() | Desired image height after conversion. |
| setHeight(int value) | Desired image height after conversion. |
| getUsePdf() | If true , the input firstly is converted to PDF and after that to desired format. |
| setUsePdf(boolean value) | If true , the input firstly is converted to PDF and after that to desired format. |
| getHorizontalResolution() | Desired image horizontal resolution after conversion. |
| setHorizontalResolution(int value) | Desired image horizontal resolution after conversion. |
| getVerticalResolution() | Desired image vertical resolution after conversion. |
| setVerticalResolution(int value) | Desired image vertical resolution after conversion. |
| getTiffOptions() | Tiff specific convert options. |
| setTiffOptions(TiffOptions value) | Tiff specific convert options. |
| getPsdOptions() | Psd specific convert options. |
| setPsdOptions(PsdOptions value) | Psd specific convert options. |
| getWebpOptions() | Webp specific convert options. |
| setWebpOptions(WebpOptions value) | Webp specific convert options. |
| getGrayscale() | Indicates whether to convert into grayscale image. |
| setGrayscale(boolean value) | Indicates whether to convert into grayscale image. |
| getRotateAngle() | Image rotation angle. |
| setRotateAngle(int value) | Image rotation angle. |
| getJpegOptions() | Jpeg specific convert options. |
| setJpegOptions(JpegOptions value) | Jpeg specific convert options. |
| getFlipMode() | Image flip mode. |
| setFlipMode(ImageFlipModes value) | Image flip mode. |
| getBrightness() | Adjusts image brightness. |
| setBrightness(int value) | Adjusts image brightness. |
| getContrast() | Adjusts image contrast. |
| setContrast(int value) | Adjusts image contrast. |
| getGamma() | Adjusts image gamma. |
| setGamma(double value) | Adjusts image gamma. |
| setGamma(float value) | Adjusts image gamma. |
| getBackgroundColor() | Gets background color |
| setBackgroundColor(System.Drawing.Color backgroundColor) | Sets background color where supported by the source format |
public ImageConvertOptions()
Initializes new instance of ImageConvertOptions class.
public static final int DEFAULT_DPI
public final int getWidth()
Desired image width after conversion.
Returns: int
public final void setWidth(int value)
Desired image width after conversion.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final int getHeight()
Desired image height after conversion.
Returns: int
public final void setHeight(int value)
Desired image height after conversion.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final boolean getUsePdf()
If true , the input firstly is converted to PDF and after that to desired format.
Returns: boolean
public final void setUsePdf(boolean value)
If true , the input firstly is converted to PDF and after that to desired format.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
public final int getHorizontalResolution()
Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96 dpi.
Returns: int
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final int getVerticalResolution()
Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96 dpi.
Returns: int
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final TiffOptions getTiffOptions()
Tiff specific convert options.
Returns: TiffOptions
public final void setTiffOptions(TiffOptions value)
Tiff specific convert options.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | TiffOptions |
public final PsdOptions getPsdOptions()
Psd specific convert options.
Returns: PsdOptions
public final void setPsdOptions(PsdOptions value)
Psd specific convert options.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | PsdOptions |
public final WebpOptions getWebpOptions()
Webp specific convert options.
Returns: WebpOptions
public final void setWebpOptions(WebpOptions value)
Webp specific convert options.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | WebpOptions |
public final boolean getGrayscale()
Indicates whether to convert into grayscale image.
Returns: boolean
public final void setGrayscale(boolean value)
Indicates whether to convert into grayscale image.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
public final int getRotateAngle()
Image rotation angle.
Returns: int
public final void setRotateAngle(int value)
Image rotation angle.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final JpegOptions getJpegOptions()
Jpeg specific convert options.
Returns: JpegOptions
public final void setJpegOptions(JpegOptions value)
Jpeg specific convert options.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | JpegOptions |
public final ImageFlipModes getFlipMode()
Image flip mode.
Returns: ImageFlipModes
public final void setFlipMode(ImageFlipModes value)
Image flip mode.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ImageFlipModes |
public final int getBrightness()
Adjusts image brightness.
Returns: int
public final void setBrightness(int value)
Adjusts image brightness.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final int getContrast()
Adjusts image contrast.
Returns: int
public final void setContrast(int value)
Adjusts image contrast.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |
public final double getGamma()
Adjusts image gamma.
Returns: double
public final void setGamma(double value)
Adjusts image gamma.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | double |
public final void setGamma(float value)
Adjusts image gamma.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float |
public System.Drawing.Color getBackgroundColor()
Gets background color
Returns: com.aspose.ms.System.Drawing.Color - background color
public void setBackgroundColor(System.Drawing.Color backgroundColor)
Sets background color where supported by the source format
Parameters:
| Parameter | Type | Description |
|---|---|---|
| backgroundColor | com.aspose.ms.System.Drawing.Color | background color |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.