ImageDevice

遗产: java.lang.Object, com.aspose.pdf.devices.Device, com.aspose.pdf.devices.PageDevice

public abstract class ImageDevice extends PageDevice

图像设备的抽象类。

构造函数

构造函数描述
ImageDevice()ImageDevice 后代的抽象初始化程序,将分辨率设置为 150x150。
ImageDevice(Resolution resolution)ImageDevice 后代的抽象初始值设定项。
ImageDevice(int width, int height)使用提供的图像尺寸和默认分辨率 (=150) 初始化 JpegDevice 类的新实例。
ImageDevice(PageSize pageSize)使用提供的图像尺寸和默认分辨率 (=150) 初始化 JpegDevice 类的新实例。
ImageDevice(int width, int height, Resolution resolution)使用提供的图像尺寸和分辨率初始化 JpegDevice 类的新实例。
ImageDevice(PageSize pageSize, Resolution resolution)使用提供的图像尺寸和分辨率初始化 JpegDevice 类的新实例。

方法

方法描述
equals(Object arg0)
getClass()
getCoordinateType()获取页面坐标类型(媒体/裁剪框)。
getCropRectangle()获取定义将转换为图片的区域的矩形。
getFormPresentationMode()获取表单呈现模式。
getHeight()获取图像输出高度。
getRenderingOptions()获取渲染选项。
getResolution()获取图像分辨率。
getWidth()获取图像输出宽度。
hashCode()
isShadingPerformanceHigh()着色过程的性能是否高。
notify()
notifyAll()
process(Page page, System.Drawing.Graphics gr)在图形上呈现页面
process(Page page, OutputStream output)在给定页面上执行一些操作,例如将页面转换为图形图像。
process(Page page, String outputFileName)在给定页面上执行一些操作并将结果保存到文件中。
processInternal(Page page, System.IO.Stream output)在给定页面上执行一些操作,例如将页面转换为图形图像。
setCoordinateType(int value)设置页面坐标类型(媒体/裁剪框)。
setCropRectangle(Rectangle cropRectangle)设置矩形,定义将转换为图片的区域。
setFormPresentationMode(int value)设置表单呈现模式。
setRenderingOptions(RenderingOptions value)设置渲染选项。
setShadingPerformanceHigh(boolean value)设置着色过程的性能是否高。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ImageDevice()

public ImageDevice()

ImageDevice 后代的抽象初始化程序,将分辨率设置为 150x150。

ImageDevice(Resolution resolution)

public ImageDevice(Resolution resolution)

ImageDevice 后代的抽象初始值设定项。

参数:

范围类型描述
resolutionResolution结果图像文件的分辨率,请参阅分辨率类。

ImageDevice(int width, int height)

public ImageDevice(int width, int height)

使用提供的图像尺寸和默认分辨率 (=150) 初始化 JpegDevice 类的新实例。

参数:

范围类型描述
widthint图像输出宽度。
heightint图像输出高度。

ImageDevice(PageSize pageSize)

public ImageDevice(PageSize pageSize)

使用提供的图像尺寸和默认分辨率 (=150) 初始化 JpegDevice 类的新实例。

参数:

范围类型描述
pageSizePageSize输出图像的页面大小。

ImageDevice(int width, int height, Resolution resolution)

public ImageDevice(int width, int height, Resolution resolution)

使用提供的图像尺寸和分辨率初始化 JpegDevice 类的新实例。

参数:

范围类型描述
widthint图像输出宽度。
heightint图像输出高度。
resolutionResolution结果图像文件的分辨率,请参阅分辨率类。

ImageDevice(PageSize pageSize, Resolution resolution)

public ImageDevice(PageSize pageSize, Resolution resolution)

使用提供的图像尺寸和分辨率初始化 JpegDevice 类的新实例。

参数:

范围类型描述
pageSizePageSize输出图像的页面大小。
resolutionResolution结果图像文件的分辨率,请参阅分辨率类。

equals(Object arg0)

public boolean equals(Object arg0)

参数:

范围类型描述
arg0java.lang.Object

退货: 布尔值

getClass()

public final native Class<?> getClass()

退货: java.lang.Class

getCoordinateType()

public int getCoordinateType()

获取页面坐标类型(媒体/裁剪框)。默认使用 CropBox 值。

退货: int - PageCoordinateType 元素

getCropRectangle()

public Rectangle getCropRectangle()

获取定义将转换为图片的区域的矩形。默认值为 null,在这种情况下,整个页面都将转换为图像。

退货: Rectangle - 矩形对象

getFormPresentationMode()

public int getFormPresentationMode()

获取表单呈现模式。

退货: int - FormPresentationMode 元素

getHeight()

public int getHeight()

获取图像输出高度。

退货: int - 整数值

getRenderingOptions()

public RenderingOptions getRenderingOptions()

获取渲染选项。

退货: RenderingOptions 渲染选项元素

getResolution()

public Resolution getResolution()

获取图像分辨率。

退货: Resolution 分辨率元素

getWidth()

public int getWidth()

获取图像输出宽度。

退货: int - 整数值

hashCode()

public native int hashCode()

退货: 整数

isShadingPerformanceHigh()

public static boolean isShadingPerformanceHigh()

着色过程的性能是否高。 默认为真。

退货: boolean - 布尔值

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

process(Page page, System.Drawing.Graphics gr)

public void process(Page page, System.Drawing.Graphics gr)

在图形上呈现页面

参数:

范围类型描述
pagePage页面对象
grcom.aspose.ms.System.Drawing.Graphics内部对象

process(Page page, OutputStream output)

public void process(Page page, OutputStream output)

在给定页面上执行一些操作,例如将页面转换为图形图像。

参数:

范围类型描述
pagePage要处理的页面。
outputjava.io.OutputStream该流包含处理的结果。

process(Page page, String outputFileName)

public void process(Page page, String outputFileName)

在给定页面上执行一些操作并将结果保存到文件中。

参数:

范围类型描述
pagePage要处理的页面。
outputFileNamejava.lang.String该文件包含处理结果。

processInternal(Page page, System.IO.Stream output)

public abstract void processInternal(Page page, System.IO.Stream output)

在给定页面上执行一些操作,例如将页面转换为图形图像。

参数:

范围类型描述
pagePage要处理的页面。
outputcom.aspose.ms.System.IO.Stream该流包含处理的结果。

setCoordinateType(int value)

public void setCoordinateType(int value)

设置页面坐标类型(媒体/裁剪框)。默认使用 CropBox 值。

参数:

范围类型描述
valueintPageCoordinateType 元素

setCropRectangle(Rectangle cropRectangle)

public void setCropRectangle(Rectangle cropRectangle)

设置矩形,定义将转换为图片的区域。默认值为 null,在这种情况下,整个页面都将转换为图像。

参数:

范围类型描述
cropRectangleRectangle矩形对象

setFormPresentationMode(int value)

public void setFormPresentationMode(int value)

设置表单呈现模式。

参数:

范围类型描述
valueintFormPresentationMode 元素

setRenderingOptions(RenderingOptions value)

public void setRenderingOptions(RenderingOptions value)

设置渲染选项。

参数:

范围类型描述
valueRenderingOptionsRenderingOptions 元素

setShadingPerformanceHigh(boolean value)

public static void setShadingPerformanceHigh(boolean value)

设置着色过程的性能是否高。

参数:

范围类型描述
valueboolean布尔值

toString()

public String toString()

退货: java.lang.字符串

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

参数:

范围类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

参数:

范围类型描述
arg0long
arg1int