JpegDevice
Overview
JpegDevice is a class in Aspose.PDF FOSS for .NET.
Inherits from: ImageDevice.
Renders PDF document pages into JPEG image format.
This class provides 18 methods for working with JpegDevice objects in .NET programs.
Available methods include: ClearEncoder, GetBitmap, ImageDevice, JpegDevice, Process, SetEncoder.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: CoordinateType, FormPresentationMode, Height, Quality, RenderingOptions, Resolution, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Quality | int | Read | JPEG quality (1-100). |
FormPresentationMode | FormPresentationMode | Read/Write | Form presentation mode (Production renders form values; Editor renders empty fields). |
Resolution | Resolution | Read | Output resolution in DPI. |
RenderingOptions | Aspose.Pdf.RenderingOptions | Read/Write | Rendering options for advanced control of page-to-image rendering. |
CoordinateType | PageCoordinateType | Read/Write | Which page box drives the rendered image extents. |
Width | int | Read | Configured target pixel width (0 = follow the page’s natural size at Resolution). |
Height | int | Read | Configured target pixel height (0 = follow the page’s natural size at Resolution). |
Methods
| Signature | Description |
|---|---|
JpegDevice(renderer: IPageRenderer) | Calls JpegDevice on this JpegDevice instance. |
JpegDevice(renderer: IPageRenderer, resolution: Resolution) | |
JpegDevice(renderer: IPageRenderer, resolution: Resolution, quality: int) | |
JpegDevice() | |
JpegDevice(resolution: Resolution) | |
JpegDevice(resolution: Resolution, quality: int) | |
JpegDevice(quality: int) | |
JpegDevice(width: int, height: int) | |
JpegDevice(width: int, height: int, resolution: Resolution) | |
JpegDevice(width: int, height: int, resolution: Resolution, quality: int) | |
JpegDevice(pageSize: Aspose.Pdf.PageSize) | Construct sized to pageSize at 150 DPI, default quality 85. |
JpegDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution) | Construct sized to pageSize at resolution, default quality 85. |
JpegDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution, quality: int) | Construct sized to pageSize at resolution with explicit quality. |
SetEncoder(encoder: JpegEncoder) | Register a global JPEG encoder function. |
ClearEncoder() | Remove the registered JPEG encoder. |
Process(page: Page, output: Stream) | Calls Process on this JpegDevice instance. |
ImageDevice(resolution: Resolution) | Initializes a new ImageDevice with a Resolution using the built-in SoftwarePageRenderer. |
GetBitmap(page: Page) | Render a page to a Bitmap. |