ImageSaveOptions

Inheritance: java.lang.Object, com.aspose.page.SaveOptions

public class ImageSaveOptions extends SaveOptions

This class contains options necessary for managing conversion process.

Constructors

ConstructorDescription
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).

Methods

MethodDescription
getResolution()Returns the resolution of the resulting image.
setResolution(float resolution)Specifies resolution of resulting image.
getSmoothingMode()Gets smoothing mode.
setSmoothingMode(SmoothingMode smoothingMode)Sets smoothing mode.

ImageSaveOptions()

public ImageSaveOptions()

Initialize new instance of ImageSaveOptions class with default values for flags suppressErrors (true) and debug (false).

ImageSaveOptions(boolean supressErrors)

public ImageSaveOptions(boolean supressErrors)

Initialize new instance of ImageSaveOptions class with default values for flag debug (false).

Parameters:

ParameterTypeDescription
supressErrorsbooleanIf true conversion will be continued despite of non-critical errors.

getResolution()

public float getResolution()

Returns the resolution of the resulting image.

Returns: float - The resolution of the image.

setResolution(float resolution)

public void setResolution(float resolution)

Specifies resolution of resulting image.

Parameters:

ParameterTypeDescription
resolutionfloatThe resolution of the image.

getSmoothingMode()

public SmoothingMode getSmoothingMode()

Gets smoothing mode.

Returns: SmoothingMode - the smoothingMode.

setSmoothingMode(SmoothingMode smoothingMode)

public void setSmoothingMode(SmoothingMode smoothingMode)

Sets smoothing mode.

Parameters:

ParameterTypeDescription
smoothingModeSmoothingModethe smoothingMode to set