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

NameTypeAccessDescription
QualityintReadJPEG quality (1-100).
FormPresentationModeFormPresentationModeRead/WriteForm presentation mode (Production renders form values; Editor renders empty fields).
ResolutionResolutionReadOutput resolution in DPI.
RenderingOptionsAspose.Pdf.RenderingOptionsRead/WriteRendering options for advanced control of page-to-image rendering.
CoordinateTypePageCoordinateTypeRead/WriteWhich page box drives the rendered image extents.
WidthintReadConfigured target pixel width (0 = follow the page’s natural size at Resolution).
HeightintReadConfigured target pixel height (0 = follow the page’s natural size at Resolution).

Methods

SignatureDescription
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.

See Also