PsConverterToImageOptions

Inheritance: java.lang.Object, com.aspose.eps.plugins.PsConverterOptions

public class PsConverterToImageOptions extends PsConverterOptions

Represents PS/EPS to Image converter options for PsConverter plugin.

Constructors

ConstructorDescription
PsConverterToImageOptions()Initializes new instance of the PsConverterToImageOptions object.
PsConverterToImageOptions(ImageFormat imageFormat)Initializes new instance of the PsConverterToImageOptions object with image format.
PsConverterToImageOptions(Dimension size)Initializes new instance of the PsConverterToImageOptions object with a size of the resulting image.
PsConverterToImageOptions(ImageFormat imageFormat, Dimension size)Initializes new instance of the PsConverterToImageOptions object with image format.

Methods

MethodDescription
addDataSource(IDataSource dataSource)Adds new data source to the PsConverter plugin data collection.
addSaveDataSource(IDataSource saveDataSource)Adds new data source to the PsConverterOptions plugin data collection.
equals(Object arg0)
getAdditionalFontsFolders()Returns additional fonts folders where converter should find fonts for input document.
getClass()
getDataCollection()Returns PsConverterOptions plugin data collection.
getExceptions()Returns a list of non-critical errors.
getImageFormat()Gets image format.
getJpegQualityLevel()Returns the value specifying the level of compression for an image.
getOperationName()Returns operation name.
getResolution()Gets the image resolution.
getSaveTargetsCollection()Gets collection of added targets for saving operation results.
getSize()Gets the size of the resulting image.
getSmoothingMode()Gets the smoothing mode for rendering image.
hashCode()
isDebug()Gets the flag that allows output of warnings and messages during conversion.
isSupressErrors()Returns a value indicating whether errors will be suppressed during conversion.
notify()
notifyAll()
setAdditionalFontsFolders(String[] fontsFolders)Specifies additional fonts folders where converter should find fonts for input document.
setDebug(boolean debug)Specifies the flag that allows output of warnings and messages during conversion.
setImageFormat(ImageFormat imageFormat)Gets image format.
setJpegQualityLevel(int value)Sets the value specifying the level of compression for an image.
setResolution(int resolution)Sets the image resolution.
setSize(Dimension size)Sets the size of the resulting image.
setSmoothingMode(SmoothingMode smoothingMode)Sets the smoothing mode for rendering image.
setSupressErrors(boolean supressErrors)Specifies the flag that indicates whether errors will be suppressed during conversion.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

PsConverterToImageOptions()

public PsConverterToImageOptions()

Initializes new instance of the PsConverterToImageOptions object.

PsConverterToImageOptions(ImageFormat imageFormat)

public PsConverterToImageOptions(ImageFormat imageFormat)

Initializes new instance of the PsConverterToImageOptions object with image format.

Parameters:

ParameterTypeDescription
imageFormatImageFormatA format of resulting image.

PsConverterToImageOptions(Dimension size)

public PsConverterToImageOptions(Dimension size)

Initializes new instance of the PsConverterToImageOptions object with a size of the resulting image.

Parameters:

ParameterTypeDescription
sizejava.awt.DimensionA size the resulting image.

PsConverterToImageOptions(ImageFormat imageFormat, Dimension size)

public PsConverterToImageOptions(ImageFormat imageFormat, Dimension size)

Initializes new instance of the PsConverterToImageOptions object with image format.

Parameters:

ParameterTypeDescription
imageFormatImageFormatA format of resulting image.
sizejava.awt.Dimension

addDataSource(IDataSource dataSource)

public final void addDataSource(IDataSource dataSource)

Adds new data source to the PsConverter plugin data collection.

Parameters:

ParameterTypeDescription
dataSourceIDataSourceData source to add.

addSaveDataSource(IDataSource saveDataSource)

public final void addSaveDataSource(IDataSource saveDataSource)

Adds new data source to the PsConverterOptions plugin data collection.

Parameters:

ParameterTypeDescription
saveDataSourceIDataSourceData source (file or stream) for saving operation results.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAdditionalFontsFolders()

public String[] getAdditionalFontsFolders()

Returns additional fonts folders where converter should find fonts for input document. Default folder is standard fonts folder where OS finds fonts for internal needs.

Returns: java.lang.String[] - An array of fonts folders.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDataCollection()

public final List<IDataSource> getDataCollection()

Returns PsConverterOptions plugin data collection.

Returns: java.util.List<com.aspose.page.plugins.IDataSource>

getExceptions()

public List<Exception> getExceptions()

Returns a list of non-critical errors.

Returns: java.util.List<java.lang.Exception> - Exceptions list

getImageFormat()

public ImageFormat getImageFormat()

Gets image format.

Returns: ImageFormat - An image format.

getJpegQualityLevel()

public int getJpegQualityLevel()

Returns the value specifying the level of compression for an image. Available values are 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. 0 value results in lowest quality image, while 100 results in highest.

Returns: int - The value specifying the level of compression for an image.

getOperationName()

public final String getOperationName()

Returns operation name.

Returns: java.lang.String

getResolution()

public int getResolution()

Gets the image resolution.

Returns: int - An image resolution.

getSaveTargetsCollection()

public final List<IDataSource> getSaveTargetsCollection()

Gets collection of added targets for saving operation results.

Returns: java.util.List<com.aspose.page.plugins.IDataSource>

getSize()

public Dimension getSize()

Gets the size of the resulting image.

Returns: java.awt.Dimension - An image size.

getSmoothingMode()

public SmoothingMode getSmoothingMode()

Gets the smoothing mode for rendering image.

Returns: SmoothingMode - A smoothing mode.

hashCode()

public native int hashCode()

Returns: int

isDebug()

public boolean isDebug()

Gets the flag that allows output of warnings and messages during conversion.

Returns: boolean - debug value.

isSupressErrors()

public boolean isSupressErrors()

Returns a value indicating whether errors will be suppressed during conversion.

Returns: boolean - boolean value

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAdditionalFontsFolders(String[] fontsFolders)

public void setAdditionalFontsFolders(String[] fontsFolders)

Specifies additional fonts folders where converter should find fonts for input document. Default folder is standard fonts folder where OS finds fonts for internal needs.

Parameters:

ParameterTypeDescription
fontsFoldersjava.lang.String[]An array of fonts folders.

setDebug(boolean debug)

public void setDebug(boolean debug)

Specifies the flag that allows output of warnings and messages during conversion.

Parameters:

ParameterTypeDescription
debugbooleanBoolean value.

setImageFormat(ImageFormat imageFormat)

public void setImageFormat(ImageFormat imageFormat)

Gets image format.

Parameters:

ParameterTypeDescription
imageFormatImageFormatA format of resulting image.

setJpegQualityLevel(int value)

public void setJpegQualityLevel(int value)

Sets the value specifying the level of compression for an image. Available values are 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. 0 value results in lowest quality image, while 100 results in highest.

Parameters:

ParameterTypeDescription
valueintThe value specifying the level of compression for an image.

setResolution(int resolution)

public void setResolution(int resolution)

Sets the image resolution.

Parameters:

ParameterTypeDescription
resolutionintA resolution of resulting image.

setSize(Dimension size)

public void setSize(Dimension size)

Sets the size of the resulting image.

Parameters:

ParameterTypeDescription
sizejava.awt.DimensionA size of resulting image.

setSmoothingMode(SmoothingMode smoothingMode)

public void setSmoothingMode(SmoothingMode smoothingMode)

Sets the smoothing mode for rendering image.

Parameters:

ParameterTypeDescription
smoothingModeSmoothingModeA smoothing mode.

setSupressErrors(boolean supressErrors)

public void setSupressErrors(boolean supressErrors)

Specifies the flag that indicates whether errors will be suppressed during conversion.

Parameters:

ParameterTypeDescription
supressErrorsbooleanBoolean value.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int