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 declares 25 methods for JpegDevice objects in .NET programs. Available methods include: ClearEncoder, GetBitmap, ImageDevice, JpegDevice, Process, SetEncoder. 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)Creates a JpegDevice that renders pages with the given renderer at the default resolution of 150 DPI.
JpegDevice(renderer: IPageRenderer, resolution: Resolution)Creates a JpegDevice that renders pages with the given renderer at the given resolution (150 DPI when resolution is null).
JpegDevice(renderer: IPageRenderer, resolution: Resolution, quality: int)Creates a JpegDevice that renders pages with the given renderer at the given resolution and encodes with the given JPEG quality (1-100).
JpegDevice()Creates a JpegDevice that renders pages with the built-in renderer at the default resolution of 150 DPI.
JpegDevice(resolution: Resolution)Creates a JpegDevice that renders pages with the built-in renderer at the given resolution.
JpegDevice(resolution: Resolution, quality: int)Creates a JpegDevice that renders pages at the given resolution and encodes with the given JPEG quality (1-100).
JpegDevice(quality: int)Creates a JpegDevice that renders pages at 150 DPI and encodes with the given JPEG quality (1-100).
JpegDevice(width: int, height: int)Creates a JpegDevice whose output image is resampled to the given width and height in pixels; pages are rendered at 150 DPI.
JpegDevice(width: int, height: int, resolution: Resolution)Creates a JpegDevice that renders pages at the given resolution and resamples the output image to the given width and height in pixels.
JpegDevice(width: int, height: int, resolution: Resolution, quality: int)Creates a JpegDevice that renders pages at the given resolution, resamples the output to the given width and height in pixels, and encodes with the given JPEG quality (1-100).
JpegDevice(pageSize: Aspose.Pdf.PageSize)Construct sized to pageSize at 150 DPI, default quality 100.
JpegDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution)Construct sized to pageSize at resolution, default quality 100.
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(page, output) on this JpegDevice instance.
ImageDevice(resolution: Resolution)Initializes a new ImageDevice with a Resolution using the built-in SoftwarePageRenderer.
ImageDevice()Initializes a new ImageDevice with default resolution and built-in SoftwarePageRenderer.
ImageDevice(width: int, height: int)Initializes a new ImageDevice with explicit output pixel dimensions using the built-in SoftwarePageRenderer at default resolution (150 DPI).
ImageDevice(width: int, height: int, resolution: Resolution)Initializes a new ImageDevice with explicit output pixel dimensions and rendering resolution using the built-in SoftwarePageRenderer.
ImageDevice(pageSize: Aspose.Pdf.PageSize)Initialize from a PageSize (in points; converted to integer pixel dimensions at the default 150 DPI).
ImageDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution)Initialize from a PageSize and rendering Resolution.
GetBitmap(page: Page)Render a page to a Bitmap.
Process(page: Page, outputFileName: string)Convert a page to an image file.
Process(page: Page)Convert a page to image bytes.

See Also

 English