public final class ImageSaveOptions extends SaveOptions
Options for to Image conversion
Modifier and Type | Class and Description |
---|---|
static class |
ImageSaveOptions.ImageFileType
Image file types
|
Modifier and Type | Field and Description |
---|---|
static int |
DefaultDpi |
Constructor and Description |
---|
ImageSaveOptions()
Create ImageSaveOptions instance
|
Modifier and Type | Method and Description |
---|---|
com.groupdocs.foundation.domain.FileType |
getConvertFileType_ImageSaveOptions_New()
The desired file type to which the input document should be converted to
|
boolean |
getGrayscale()
Convert to grayscale image
|
int |
getHeight()
Desired image height after conversion
|
int |
getHorizontalResolution()
Desired image horizontal resolution after conversion.
|
int |
getJpegQuality()
Desired image quality when converting to Jpeg.
|
PsdOptions |
getPsdOptions()
Psd specific convert options
|
TiffOptions |
getTiffOptions()
Tiff specific convert options
|
boolean |
getUsePdf_ImageSaveOptions_New()
If
true , the input firstly is converted to PDF and after that to
desired format |
boolean |
getUseWidthForCustomName()
If
true the width of the page will be added to the CustomName
when generating the caching file name. |
int |
getVerticalResolution()
Desired image vertical resolution after conversion.
|
WebpOptions |
getWebpOptions()
Webp specific convert options
|
int |
getWidth()
Desired image width after conversion
|
void |
setConvertFileType_ImageSaveOptions_New(com.groupdocs.foundation.domain.FileType value)
The desired file type to which the input document should be converted to
|
void |
setDpi(int value)
Desired image DPI after conversion.
|
void |
setGrayscale(boolean value)
Convert to grayscale image
|
void |
setHeight(int value)
Desired image height after conversion
|
void |
setHorizontalResolution(int value)
Desired image horizontal resolution after conversion.
|
void |
setJpegQuality(int value)
Desired image quality when converting to Jpeg.
|
void |
setPsdOptions(PsdOptions value)
Psd specific convert options
|
void |
setTiffOptions(TiffOptions value)
Tiff specific convert options
|
void |
setUsePdf_ImageSaveOptions_New(boolean value)
If
true , the input firstly is converted to PDF and after that to
desired format |
void |
setUseWidthForCustomName(boolean value)
If
true the width of the page will be added to the CustomName
when generating the caching file name. |
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
|
deepClone, getCadOptions, getConvertFileType, getConvertFileTypeExtension, getConvertPages, getCustomName, getHideComments, getHidePdfAnnotations, getHideWordComments, getHideWordTrackedChanges, getNumPagesToConvert, getOutputType, getPageMode, getPageNumber, getSaveOptionsType, getShowGridLines, getShowHiddenSheets, getUsePdf, getWatermarkOptions, memberwiseClone, setCadOptions, setConvertFileType, setConvertPages, setCustomName, setHideComments, setHidePdfAnnotations, setHideWordComments, setHideWordTrackedChanges, setNumPagesToConvert, setOutputType, setPageMode, setPageNumber, setShowGridLines, setShowHiddenSheets, setUsePdf, setWatermarkOptions
public static final int DefaultDpi
public boolean getUseWidthForCustomName()
If true
the width of the page will be added to the CustomName
when generating the caching file name.
public void setUseWidthForCustomName(boolean value)
If true
the width of the page will be added to the CustomName
when generating the caching file name.
value
- public int getWidth()
Desired image width after conversion
public void setWidth(int value)
Desired image width after conversion
value
- public int getHeight()
Desired image height after conversion
public void setHeight(int value)
Desired image height after conversion
value
- public boolean getUsePdf_ImageSaveOptions_New()
If true
, the input firstly is converted to PDF and after that to
desired format
public void setUsePdf_ImageSaveOptions_New(boolean value)
If true
, the input firstly is converted to PDF and after that to
desired format
value
- public com.groupdocs.foundation.domain.FileType getConvertFileType_ImageSaveOptions_New()
The desired file type to which the input document should be converted to
public void setConvertFileType_ImageSaveOptions_New(com.groupdocs.foundation.domain.FileType value)
The desired file type to which the input document should be converted to
value
- public void setDpi(int value)
Desired image DPI after conversion. It sets both HorizontalResolution and VerticalResolution. The default resolution is: 96dpi
value
- public int getHorizontalResolution()
Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96dpi
public void setHorizontalResolution(int value)
Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96dpi
public int getVerticalResolution()
Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96dpi
public void setVerticalResolution(int value)
Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96dpi
public int getJpegQuality()
Desired image quality when converting to Jpeg. The value must be between 0 and 100. The default value is 100.
public void setJpegQuality(int value)
Desired image quality when converting to Jpeg. The value must be between 0 and 100. The default value is 100.
value
- public TiffOptions getTiffOptions()
Tiff specific convert options
public void setTiffOptions(TiffOptions value)
Tiff specific convert options
value
- public PsdOptions getPsdOptions()
Psd specific convert options
public void setPsdOptions(PsdOptions value)
Psd specific convert options
value
- public WebpOptions getWebpOptions()
Webp specific convert options
public void setWebpOptions(WebpOptions value)
Webp specific convert options
value
- public boolean getGrayscale()
Convert to grayscale image
public void setGrayscale(boolean value)
Convert to grayscale image
value
- Copyright © 2017. All rights reserved.