GifDevice
概述
GifDevice 是 Aspose.PDF FOSS 中用于 .NET 的类。继承自:ImageDevice。
将 PDF 文档页面渲染为 GIF 图像格式。
此类提供 11 个方法,用于在 .NET 程序中处理 GifDevice 对象。可用的方法包括:GetBitmap、GifDevice、ImageDevice、Process。在安装 Aspose.PDF 用于 .NET 的 FOSS 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:CoordinateType、FormPresentationMode、Height、RenderingOptions、Resolution、Width。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Resolution | Resolution | 读取 | 输出分辨率(单位为 DPI)。 |
RenderingOptions | Aspose.Pdf.RenderingOptions | 读写 | 用于高级控制页面到图像渲染的渲染选项。 |
CoordinateType | PageCoordinateType | 读写 | 哪个页面框驱动渲染图像的范围。 |
Width | int | 读取 | 配置的目标像素宽度(0 = 按分辨率遵循页面的自然尺寸)。 |
Height | int | 读取 | 配置的目标像素高度(0 = 按分辨率遵循页面的自然尺寸)。 |
FormPresentationMode | FormPresentationMode | 读写 | 表单字段的渲染方式(Production vs Editor)。 |
方法
| 签名 | 描述 |
|---|---|
GifDevice(renderer: IPageRenderer) | 在此 GifDevice 实例上调用 GifDevice(renderer)。 |
GifDevice(renderer: IPageRenderer, resolution: Resolution) | 在此 GifDevice 实例上调用 GifDevice(renderer, resolution)。 |
GifDevice() | |
GifDevice(resolution: Resolution) | 在此 GifDevice 实例上调用 GifDevice(resolution)。 |
GifDevice(width: int, height: int) | 在此 GifDevice 实例上调用 GifDevice(width, height)。 |
GifDevice(width: int, height: int, resolution: Resolution) | 在此 GifDevice 实例上调用 GifDevice(width, height, resolution)。 |
GifDevice(pageSize: Aspose.Pdf.PageSize) | 在此 GifDevice 实例上调用 GifDevice(pageSize)。 |
GifDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution) | 在此 GifDevice 实例上调用 GifDevice(pageSize, resolution)。 |
Process(page: Page, output: Stream) | 在此 GifDevice 实例上调用 Process(page, output)。 |
ImageDevice(resolution: Resolution) | 使用内置的 SoftwarePageRenderer 初始化一个带有分辨率的新的 ImageDevice。 |
GetBitmap(page: Page) | 将页面渲染为 Bitmap。 |