ImageSaveOptions

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

All Implemented Interfaces: com.aspose.page.IMultiPageSaveOptions, com.aspose.xps.rendering.IPipelineOptions, com.aspose.xps.rendering.IEventBasedModificationOptions

public abstract class ImageSaveOptions extends SaveOptions implements IMultiPageSaveOptions, IPipelineOptions, IEventBasedModificationOptions

Basic class for XPS-as-image saving options.

Constructors

ConstructorDescription
ImageSaveOptions()Creates new instance of options

Methods

MethodDescription
equals(Object arg0)
getAdditionalFontsFolders()Returns additional fonts folders where converter should find fonts for input document.
getBatchSize()Returns the size of a portion of pages to pass from node to node.
getBeforePageSavingEventHandlers()Returns the collection of event handlers that performs modifications to an XPS page just before it is saved.
getClass()
getExceptions()Returns a list of non-critical errors.
getImageSize()Gets the size of the output images in pixels.
getInterpolationMode()Gets the interpolation mode.
getJpegQualityLevel()Returns the value specifying the level of compression for an image.
getPageNumbers()Gets the array of numbers of pages to render.
getResolution()Gets the image resolution.
getSize()Gets a size of the page or image.
getSmoothingMode()Gets the smoothing mode.
getTextRenderingHint()Gets the text rendering hint.
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.
setBatchSize(int value)Sets the size of a portion of pages to pass from node to node.
setDebug(boolean debug)Specifies the flag that allows output of warnings and messages during conversion.
setImageSize(Dimension value)Sets the size of the output images in pixels.
setInterpolationMode(InterpolationMode value)Sets the interpolation mode.
setJpegQualityLevel(int value)Sets the value specifying the level of compression for an image.
setPageNumbers(int[] value)Sets the array of numbers of pages to render.
setResolution(float value)Sets the image resolution.
setSize(Dimension size)Specifies a size of the page or image.
setSmoothingMode(SmoothingMode value)Sets the smoothing mode.
setSupressErrors(boolean supressErrors)Specifies the flag that indicates whether errors will be suppressed during conversion.
setTextRenderingHint(TextRenderingHint value)Sets the text rendering hint.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ImageSaveOptions()

public ImageSaveOptions()

Creates new instance of options

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.

getBatchSize()

public int getBatchSize()

Returns the size of a portion of pages to pass from node to node.

Returns: int - The size of a portion of pages to pass from node to node.

getBeforePageSavingEventHandlers()

public List<EventBasedModifications.BeforePageSavingEventHandler> getBeforePageSavingEventHandlers()

Returns the collection of event handlers that performs modifications to an XPS page just before it is saved.

Returns: java.util.List<com.aspose.xps.features.EventBasedModifications.BeforePageSavingEventHandler>

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getExceptions()

public List<Exception> getExceptions()

Returns a list of non-critical errors.

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

getImageSize()

public Dimension getImageSize()

Gets the size of the output images in pixels.

Returns: java.awt.Dimension - The size of the output images in pixels.

getInterpolationMode()

public InterpolationMode getInterpolationMode()

Gets the interpolation mode.

Returns: InterpolationMode - The interpolation mode.

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.

getPageNumbers()

public int[] getPageNumbers()

Gets the array of numbers of pages to render.

Returns: int[] - Numbers of pages.

getResolution()

public float getResolution()

Gets the image resolution.

Returns: float - The image resolution.

getSize()

public Dimension getSize()

Gets a size of the page or image.

Returns: java.awt.Dimension - A size of the page or image.

getSmoothingMode()

public SmoothingMode getSmoothingMode()

Gets the smoothing mode.

Returns: SmoothingMode - The smoothing mode.

getTextRenderingHint()

public TextRenderingHint getTextRenderingHint()

Gets the text rendering hint.

Returns: TextRenderingHint - The text rendering hint.

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.

setBatchSize(int value)

public void setBatchSize(int value)

Sets the size of a portion of pages to pass from node to node.

Parameters:

ParameterTypeDescription
valueintThe size of a portion of pages to pass from node to node.

setDebug(boolean debug)

public void setDebug(boolean debug)

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

Parameters:

ParameterTypeDescription
debugbooleanBoolean value.

setImageSize(Dimension value)

public void setImageSize(Dimension value)

Sets the size of the output images in pixels.

Parameters:

ParameterTypeDescription
valuejava.awt.DimensionThe size of the output images in pixels.

setInterpolationMode(InterpolationMode value)

public void setInterpolationMode(InterpolationMode value)

Sets the interpolation mode.

Parameters:

ParameterTypeDescription
valueInterpolationModeThe interpolation mode.

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.

setPageNumbers(int[] value)

public void setPageNumbers(int[] value)

Sets the array of numbers of pages to render.

Parameters:

ParameterTypeDescription
valueint[]Numbers of pages.

setResolution(float value)

public void setResolution(float value)

Sets the image resolution.

Parameters:

ParameterTypeDescription
valuefloatThe image resolution.

setSize(Dimension size)

public void setSize(Dimension size)

Specifies a size of the page or image.

Parameters:

ParameterTypeDescription
sizejava.awt.DimensionSize of the page or image.

setSmoothingMode(SmoothingMode value)

public void setSmoothingMode(SmoothingMode value)

Sets the smoothing mode.

Parameters:

ParameterTypeDescription
valueSmoothingModeThe 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.

setTextRenderingHint(TextRenderingHint value)

public void setTextRenderingHint(TextRenderingHint value)

Sets the text rendering hint.

Parameters:

ParameterTypeDescription
valueTextRenderingHintThe text rendering hint.

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