public class ImageSaveOptions extends SaveOptions
This class contains options necessary for managing conversion process.
| Constructor and Description |
|---|
ImageSaveOptions()
Initialize new instance of
ImageSaveOptions class with default values for flags suppressErrors (true) and
debug (false). |
ImageSaveOptions(boolean supressErrors)
Initialize new instance of
ImageSaveOptions class with default values for flag debug (false). |
ImageSaveOptions(Dimension size)
Initializes new instance of
ImageSaveOptions with specified size of the image. |
ImageSaveOptions(Dimension size,
boolean supressErrors)
Initializes new instance of
ImageSaveOptions with specified size of the image and suppressErrors flag. |
ImageSaveOptions(Dimension size,
ImageFormat imageFormat)
Initializes new instance of
ImageSaveOptions with specified size of the image and image format. |
ImageSaveOptions(Dimension size,
ImageFormat imageFormat,
boolean supressErrors)
Initializes new instance of
ImageSaveOptions with specified size of the image, image format and suppressErrors flag. |
ImageSaveOptions(ImageFormat imageFormat)
Initializes new instance of
ImageSaveOptions with specified image format. |
ImageSaveOptions(ImageFormat imageFormat,
boolean supressErrors)
Initializes new instance of
ImageSaveOptions with specified image format and suppressErrors flag. |
| Modifier and Type | Method and Description |
|---|---|
ImageFormat |
getImageFormat()
Gets an image format for resulting image.
|
float |
getResolution()
Returns the resolution of the resulting image.
|
SmoothingMode |
getSmoothingMode()
Gets smoothing mode.
|
boolean |
getTryJoinImageFragments()
Indicates whether the library will try to join image fragments.
|
void |
setImageFormat(ImageFormat imageFormat)
Specifies an image format for resulting image.
|
void |
setResolution(float resolution)
Specifies resolution of resulting image.
|
void |
setSmoothingMode(SmoothingMode smoothingMode)
Sets smoothing mode.
|
void |
setTryJoinImageFragments(boolean tryJoinImageFragments)
Specifies if the library should try to join image fragments.
|
getAdditionalFontsFolders, getConvertFontsToTTF, getExceptions, getJpegQualityLevel, getSize, isDebug, isSupressErrors, setAdditionalFontsFolders, setConvertFontsToTTF, setDebug, setJpegQualityLevel, setSize, setSupressErrorspublic ImageSaveOptions()
Initialize new instance of ImageSaveOptions class with default values for flags suppressErrors (true) and
debug (false).
public ImageSaveOptions(ImageFormat imageFormat)
Initializes new instance of ImageSaveOptions with specified image format.
imageFormat - The format of the image.public ImageSaveOptions(Dimension size)
Initializes new instance of ImageSaveOptions with specified size of the image.
size - Image size.public ImageSaveOptions(Dimension size, ImageFormat imageFormat)
Initializes new instance of ImageSaveOptions with specified size of the image and image format.
size - Image size.imageFormat - Format of the image.public ImageSaveOptions(ImageFormat imageFormat, boolean supressErrors)
Initializes new instance of ImageSaveOptions with specified image format and suppressErrors flag.
imageFormat - Format of the image.supressErrors - If true conversion will be continued despite of non-critical errors.public ImageSaveOptions(Dimension size, boolean supressErrors)
Initializes new instance of ImageSaveOptions with specified size of the image and suppressErrors flag.
size - Image size.supressErrors - If true conversion will be continued despite of non-critical errors.public ImageSaveOptions(Dimension size, ImageFormat imageFormat, boolean supressErrors)
Initializes new instance of ImageSaveOptions with specified size of the image, image format and suppressErrors flag.
size - Image size.imageFormat - Format of the image.supressErrors - If true conversion will be continued despite of non-critical errors.public ImageSaveOptions(boolean supressErrors)
Initialize new instance of ImageSaveOptions class with default values for flag debug (false).
supressErrors - If true conversion will be continued despite of non-critical errors.public ImageFormat getImageFormat()
Gets an image format for resulting image.
public void setImageFormat(ImageFormat imageFormat)
Specifies an image format for resulting image.
imageFormat - An output image format.public float getResolution()
Returns the resolution of the resulting image.
public void setResolution(float resolution)
Specifies resolution of resulting image.
resolution - The resolution of the image.public SmoothingMode getSmoothingMode()
public void setSmoothingMode(SmoothingMode smoothingMode)
smoothingMode - the smoothingMode to setpublic boolean getTryJoinImageFragments()
public void setTryJoinImageFragments(boolean tryJoinImageFragments)
tryJoinImageFragments - the value of flag.Copyright © 2025 Aspose. All Rights Reserved.