ThumbnailDevice

ThumbnailDevice

概述

ThumbnailDevice 是 Aspose.PDF FOSS 中用于 .NET 的类。继承自:ImageDevice。

将 PDF 文档页面渲染为缩略图 PNG 图像。

此类提供 16 个方法,用于在 .NET 程序中处理 ThumbnailDevice 对象。可用的方法包括:GetBitmap、ImageDevice、Process、ThumbnailDevice。在安装 Aspose.PDF FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:CoordinateType、FormPresentationMode、Height、RenderingOptions、Resolution、Width。

属性

名称类型访问描述
ResolutionResolution读取输出分辨率(单位为 DPI)。
RenderingOptionsAspose.Pdf.RenderingOptions读写用于高级控制页面到图像渲染的渲染选项。
CoordinateTypePageCoordinateType读写哪个页面框决定渲染图像的范围。
Widthint读取配置的目标像素宽度(0 = 按分辨率使用页面的自然尺寸)。
Heightint读取配置的目标像素高度(0 = 按分辨率使用页面的自然尺寸)。
FormPresentationModeFormPresentationMode读写表单字段的渲染方式(Production vs Editor)。

方法

签名描述
ThumbnailDevice()在此 ThumbnailDevice 实例上调用 ThumbnailDevice。
ThumbnailDevice(resolution: Resolution)在此 ThumbnailDevice 实例上调用 ThumbnailDevice(resolution)。
ThumbnailDevice(width: int, height: int)在此 ThumbnailDevice 实例上调用 ThumbnailDevice(width, height)。
ThumbnailDevice(width: int, height: int, resolution: Resolution)在此 ThumbnailDevice 实例上调用 ThumbnailDevice(width, height, resolution)。
ThumbnailDevice(pageSize: Aspose.Pdf.PageSize)构造尺寸为给定的 pageSize,分辨率为 150 DPI。
ThumbnailDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution)按 pageSize 以及请求的分辨率构造尺寸。
Process(page: Page, output: Stream)在此 ThumbnailDevice 实例上调用 Process(page, output)。
ImageDevice(resolution: Resolution)使用内置的 SoftwarePageRenderer 初始化一个带有分辨率的新的 ImageDevice。
ImageDevice()使用默认分辨率和内置的 SoftwarePageRenderer 初始化一个新的 ImageDevice。
ImageDevice(width: int, height: int)使用内置的 SoftwarePageRenderer 并在默认分辨率(150 DPI)下,以明确的输出像素尺寸初始化一个新的 ImageDevice。
ImageDevice(width: int, height: int, resolution: Resolution)使用内置的 SoftwarePageRenderer,并以明确的输出像素尺寸和渲染分辨率初始化一个新的 ImageDevice。
ImageDevice(pageSize: Aspose.Pdf.PageSize)从 PageSize 初始化(以点为单位;在默认 150 DPI 下转换为整数像素尺寸)。
ImageDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution)从 PageSize 和渲染分辨率初始化。
GetBitmap(page: Page)将页面渲染为 Bitmap。
Process(page: Page, outputFileName: string)将页面转换为图像文件。
Process(page: Page)将页面转换为图像字节。
 中文