EmfDevice

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

public final class EmfDevice extends ImageDevice

表示有助于将 pdf 文档页面保存到 emf 中的图像设备。

构造函数

构造函数描述
EmfDevice()使用写入 emf 的光栅图像的默认分辨率初始化 EmfDevice 类的新实例。
EmfDevice(Resolution resolution)初始化 EmfDevice 类的新实例。
EmfDevice(int width, int height)使用提供的图像尺寸和写入 emf 的光栅图像的默认分辨率初始化 EmfDevice 类的新实例 (=150)
EmfDevice(PageSize pageSize)使用提供的页面大小和写入 emf 的光栅图像的默认分辨率初始化 EmfDevice 类的新实例 (=150)
EmfDevice(int width, int height, Resolution resolution)使用提供的图像尺寸和写入 emf 的光栅图像的分辨率初始化 JpegDevice 类的新实例。
EmfDevice(PageSize pageSize, Resolution resolution)使用提供的页面大小和写入 emf 的光栅图像的分辨率初始化 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)将页面转换为 emf 并将其保存在输出流中。
process(Page page, String outputFileName)在给定页面上执行一些操作并将结果保存到文件中。
processInternal(Page page, System.IO.Stream output)将页面转换为 emf 并将其保存在输出流中。
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)

EmfDevice()

public EmfDevice()

使用写入 emf 的光栅图像的默认分辨率初始化 EmfDevice 类的新实例。

EmfDevice(Resolution resolution)

public EmfDevice(Resolution resolution)

初始化 EmfDevice 类的新实例。

参数:

范围类型描述
resolutionResolution写入 emf 的光栅图像的分辨率,请参阅分辨率类。

EmfDevice(int width, int height)

public EmfDevice(int width, int height)

使用提供的图像尺寸和写入 emf 的光栅图像的默认分辨率初始化 EmfDevice 类的新实例 (=150)

参数:

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

EmfDevice(PageSize pageSize)

public EmfDevice(PageSize pageSize)

使用提供的页面大小和写入 emf 的光栅图像的默认分辨率初始化 EmfDevice 类的新实例 (=150)

参数:

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

EmfDevice(int width, int height, Resolution resolution)

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

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

参数:

范围类型描述
widthint图像输出宽度。
heightint图像输出高度。
resolutionResolution写入 emf 的光栅图像的分辨率,请参阅分辨率类。

EmfDevice(PageSize pageSize, Resolution resolution)

public EmfDevice(PageSize pageSize, Resolution resolution)

使用提供的页面大小和写入 emf 的光栅图像的分辨率初始化 JpegDevice 类的新实例。

参数:

范围类型描述
pageSizePageSize输出图像的页面大小。
resolutionResolution写入 emf 的光栅图像的分辨率,请参阅分辨率类。

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)

将页面转换为 emf 并将其保存在输出流中。

参数:

范围类型描述
pagePage要转换的页面。
outputjava.io.OutputStream带有 emf 图像的输出流。

process(Page page, String outputFileName)

public void process(Page page, String outputFileName)

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

参数:

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

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

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

将页面转换为 emf 并将其保存在输出流中。

参数:

范围类型描述
pagePage要转换的页面。
outputcom.aspose.ms.System.IO.Stream带有 emf 图像的输出流。

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