XpsConverterToImageOptions

Inheritance: java.lang.Object, com.aspose.xps.plugins.XpsConverterOptions

public class XpsConverterToImageOptions extends XpsConverterOptions

表示用于 XpsConverter 插件的 XPS 到图像转换器选项。

构造函数

构造函数描述
XpsConverterToImageOptions()初始化 XpsConverterToImageOptions 对象的新实例。
XpsConverterToImageOptions(ImageFormat imageFormat)使用图像格式初始化 XpsConverterToImageOptions 对象的新实例。
XpsConverterToImageOptions(Dimension size)使用生成图像的尺寸初始化 XpsConverterToImageOptions 对象的新实例。
XpsConverterToImageOptions(ImageFormat imageFormat, Dimension size)使用图像格式初始化 XpsConverterToImageOptions 对象的新实例。

方法

方法描述
addDataSource(IDataSource dataSource)向 XpsConverter 插件的数据集合添加新数据源。
addSaveDataSource(IDataSource saveDataSource)向 XpsConverterOptions 插件的数据集合添加新数据源。
equals(Object arg0)
getClass()
getDataCollection()返回 XpsConverterOptions 插件的数据集合。
getImageFormat()获取图像格式。
getJpegQualityLevel()返回指定图像压缩级别的值。
getOperationName()返回操作名称。
getPageNumbers()获取要转换的 XPS 文档中页码的数组。
getResolution()获取图像分辨率。
getSaveTargetsCollection()获取用于保存操作结果的已添加目标的集合。
getSize()获取生成图像的大小。
getSmoothingMode()获取渲染图像的平滑模式。
hashCode()
notify()
notifyAll()
setImageFormat(ImageFormat imageFormat)获取图像格式。
setJpegQualityLevel(int value)设置指定图像压缩级别的值。
setPageNumbers(int[] pageNumbers)设置要转换的 XPS 文档页数数组。
setResolution(int resolution)设置图像分辨率。
setSize(Dimension size)设置生成图像的大小。
setSmoothingMode(SmoothingMode smoothingMode)设置渲染图像的平滑模式。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

XpsConverterToImageOptions()

public XpsConverterToImageOptions()

初始化 XpsConverterToImageOptions 对象的新实例。

XpsConverterToImageOptions(ImageFormat imageFormat)

public XpsConverterToImageOptions(ImageFormat imageFormat)

使用图像格式初始化 XpsConverterToImageOptions 对象的新实例。

Parameters:

参数类型描述
imageFormatImageFormat生成图像的格式。

XpsConverterToImageOptions(Dimension size)

public XpsConverterToImageOptions(Dimension size)

使用生成图像的尺寸初始化 XpsConverterToImageOptions 对象的新实例。

Parameters:

参数类型描述
大小java.awt.Dimension生成图像的大小。

XpsConverterToImageOptions(ImageFormat imageFormat, Dimension size)

public XpsConverterToImageOptions(ImageFormat imageFormat, Dimension size)

使用图像格式初始化 XpsConverterToImageOptions 对象的新实例。

Parameters:

参数类型描述
imageFormatImageFormat生成图像的格式。
大小java.awt.Dimension

addDataSource(IDataSource dataSource)

public final void addDataSource(IDataSource dataSource)

向 XpsConverter 插件的数据集合添加新数据源。

Parameters:

参数类型描述
dataSourceIDataSource要添加的数据源。

addSaveDataSource(IDataSource saveDataSource)

public final void addSaveDataSource(IDataSource saveDataSource)

向 XpsConverterOptions 插件的数据集合添加新数据源。

Parameters:

参数类型描述
saveDataSourceIDataSource用于保存操作结果的数据源(文件或流)。

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDataCollection()

public final List<IDataSource> getDataCollection()

返回 XpsConverterOptions 插件的数据集合。

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

getImageFormat()

public ImageFormat getImageFormat()

获取图像格式。

Returns: ImageFormat - An image format.

getJpegQualityLevel()

public int getJpegQualityLevel()

返回指定图像压缩级别的值。可用值为 0 到 100。指定的数字越低,压缩率越高,图像质量因此越低。0 值会产生最低质量的图像,而 100 则产生最高质量的图像。

Returns: int - 指定图像压缩级别的值。

getOperationName()

public final String getOperationName()

返回操作名称。

Returns: java.lang.String

getPageNumbers()

public int[] getPageNumbers()

获取要转换的 XPS 文档中页码的数组。

Returns: int[] - XPS 文档页数的数组。

getResolution()

public int getResolution()

获取图像分辨率。

Returns: int - 图像分辨率。

getSaveTargetsCollection()

public final List<IDataSource> getSaveTargetsCollection()

获取用于保存操作结果的已添加目标的集合。

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

getSize()

public Dimension getSize()

获取生成图像的大小。

Returns: java.awt.Dimension - 图像大小。

getSmoothingMode()

public SmoothingMode getSmoothingMode()

获取渲染图像的平滑模式。

Returns: SmoothingMode - A smoothing mode.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setImageFormat(ImageFormat imageFormat)

public void setImageFormat(ImageFormat imageFormat)

获取图像格式。

Parameters:

参数类型描述
imageFormatImageFormat生成图像的格式。

setJpegQualityLevel(int value)

public void setJpegQualityLevel(int value)

设置指定图像压缩级别的值。可用值为 0 到 100。指定的数字越低,压缩率越高,图像质量因此越低。0 值会产生最低质量的图像,而 100 则产生最高质量的图像。

Parameters:

参数类型描述
int指定图像压缩级别的值。

setPageNumbers(int[] pageNumbers)

public void setPageNumbers(int[] pageNumbers)

设置要转换的 XPS 文档页数数组。如果未设置,将转换所有页。

Parameters:

参数类型描述
pageNumbersint[]XPS 文档中页数的数组。

setResolution(int resolution)

public void setResolution(int resolution)

设置图像分辨率。

Parameters:

参数类型描述
分辨率int生成图像的分辨率。

setSize(Dimension size)

public void setSize(Dimension size)

设置生成图像的大小。

Parameters:

参数类型描述
大小java.awt.Dimension生成图像的尺寸。

setSmoothingMode(SmoothingMode smoothingMode)

public void setSmoothingMode(SmoothingMode smoothingMode)

设置渲染图像的平滑模式。

Parameters:

参数类型描述
smoothingModeSmoothingMode平滑模式。

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int