PngDevice
概述
PngDevice 是一个类在Aspose.PDF FOSS的.NET中. 继承人: ImageDevice.
将PDF文档页面转换为PNG图像格式.
本类提供了11种方法,用于在NET程序中与PngDevice对象工作. 有的方法包括: GetBitmap, ImageDevice, PngDevice, Process. 所有公众成员在安装了Aspose.PDF FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: CoordinateType, FormPresentationMode, Height, RenderingOptions, Resolution, TransparentBackground,另外一个.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|---|---|---|
TransparentBackground | bool | 阅读/写作 | 当真时,呈现的PNG保持页面背景透明. |
Resolution | Resolution | 阅读 | 输出分辨率为DPI. |
RenderingOptions | Aspose.Pdf.RenderingOptions | 阅读/写作 | 提供页面图像呈现的高级控制选项. |
CoordinateType | PageCoordinateType | 阅读/写作 | 页面框驱动了染图像的扩展. |
Width | int | 阅读 | 设置的目标像素宽度 (0 = 在分辨率下遵循页面自然尺寸). |
Height | int | 阅读 | 设置的目标像素高度 (0 = 在分辨率下遵循页面自然尺寸). |
FormPresentationMode | FormPresentationMode | 阅读/写作 | 如何表格字段呈现 (生产与编辑). |
方法
| Signature | 描述情况 |
|---|---|
PngDevice(renderer: IPageRenderer) | 在这个 PngDevice 实例中调用PngDevice (renderer). |
PngDevice(renderer: IPageRenderer, resolution: Resolution) | 在这个 PngDevice 实例中调用PngDevice. |
PngDevice() | |
PngDevice(resolution: Resolution) | 在这个 PngDevice 实例上调用PngDevice (解决方案). |
PngDevice(width: int, height: int) | 在这个 PngDevice 实例中调用PngDevice. |
PngDevice(width: int, height: int, resolution: Resolution) | 在这个 PngDevice 实例中调用PngDevice. |
PngDevice(pageSize: Aspose.Pdf.PageSize) | 构建尺寸与给定的页面尺码在150 DPI. |
PngDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution) | 构建大小为页面大,要求分辨率. |
Process(page: Page, output: Stream) | 在这个 PngDevice 实例上调用 Process(页面,输出). |
ImageDevice(resolution: Resolution) | 使用内置的 SoftwarePageRenderer 进行初始化. |
GetBitmap(page: Page) | 转换一个页面到Bitmap. |