JpegDevice

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

public final class JpegDevice extends ImageDevice

表示有助于将 pdf 文档页面保存为 jpeg 的图像设备。

构造函数

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

JpegDevice()

public JpegDevice()

使用默认分辨率和最高质量初始化 JpegDevice 类的新实例。

JpegDevice(Resolution resolution)

public JpegDevice(Resolution resolution)

初始化 JpegDevice 类的新实例。

参数:

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

JpegDevice(int quality)

public JpegDevice(int quality)

初始化 JpegDevice 类的新实例。

参数:

范围类型描述
qualityint指定图像的压缩级别。质量的有用值范围是从 0 到 100。指定的数字越小,压缩率越高,因此图像质量越低。零将为您提供最低质量的图像,而 100 将为您提供最高质量的图像。

JpegDevice(Resolution resolution, int quality)

public JpegDevice(Resolution resolution, int quality)

初始化 JpegDevice 类的新实例。

参数:

范围类型描述
resolutionResolution结果图像文件的分辨率,请参阅分辨率类。
qualityint指定图像的压缩级别。质量的有用值范围是从 0 到 100。指定的数字越小,压缩率越高,因此图像质量越低。零将为您提供最低质量的图像,而 100 将为您提供最高质量的图像。

JpegDevice(int width, int height)

public JpegDevice(int width, int height)

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

参数:

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

JpegDevice(PageSize pageSize)

public JpegDevice(PageSize pageSize)

使用提供的页面大小、默认分辨率 (=150) 和最高质量初始化 JpegDevice 类的新实例。

参数:

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

JpegDevice(int width, int height, Resolution resolution)

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

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

参数:

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

JpegDevice(PageSize pageSize, Resolution resolution)

public JpegDevice(PageSize pageSize, Resolution resolution)

使用提供的页面大小、分辨率和最高质量初始化 JpegDevice 类的新实例。

参数:

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

JpegDevice(int width, int height, Resolution resolution, int quality)

public JpegDevice(int width, int height, Resolution resolution, int quality)

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

参数:

范围类型描述
widthint图像输出宽度。
heightint图像输出高度。
resolutionResolution结果图像文件的分辨率,请参阅分辨率类。
qualityint指定图像的压缩级别。质量的有用值范围是从 0 到 100。指定的数字越小,压缩率越高,因此图像质量越低。零将为您提供最低质量的图像,而 100 将为您提供最高质量的图像。

JpegDevice(PageSize pageSize, Resolution resolution, int quality)

public JpegDevice(PageSize pageSize, Resolution resolution, int quality)

使用提供的页面大小、分辨率和质量初始化 JpegDevice 类的新实例。

参数:

范围类型描述
pageSizePageSize输出图像的页面大小。
resolutionResolution结果图像文件的分辨率,请参阅分辨率类。
qualityint指定图像的压缩级别。质量的有用值范围是从 0 到 100。指定的数字越小,压缩率越高,因此图像质量越低。零将为您提供最低质量的图像,而 100 将为您提供最高质量的图像。

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)

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

参数:

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

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)

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

参数:

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

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