JpegDevice
Inheritance: java.lang.Object, com.aspose.pdf.devices.Device com.aspose.pdf.devices.PageDevice com.aspose.pdf.devices.ImageDevice com.aspose.pdf.devices.JpegDevice, com.aspose.pdf.devices.Device, com.aspose.pdf.devices.PageDevice com.aspose.pdf.devices.ImageDevice com.aspose.pdf.devices.JpegDevice, com.aspose.pdf.devices.PageDevice, com.aspose.pdf.devices.ImageDevice com.aspose.pdf.devices.JpegDevice, com.aspose.pdf.devices.ImageDevice, com.aspose.pdf.devices.JpegDevice
public final class JpegDevice extends ImageDevice
Represents image device that helps to save pdf document pages into jpeg.
Constructors
| Constructor | Description |
|---|---|
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with provided image dimensions, default resolution (=150) and maximum quality. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality. |
| JpegDevice | Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality. |
Methods
| Method | Description |
|---|---|
| process | Converts the page into jpeg and saves it in the output stream. |
| processInternal | Converts the page into jpeg and saves it in the output stream. |
JpegDevice
public JpegDevice()
Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDevice
public JpegDevice(int quality)
Initializes a new instance of the {@code JpegDevice} class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| quality | Specifies the level of compression for an image. The range of useful values for the quality is from 0 to 100. The lower the number specified, the higher the compression and therefore the lower the quality of the image. Zero would give you the lowest quality image and 100 the highest. |
JpegDevice
public JpegDevice(int width, int height)
Initializes a new instance of the {@code JpegDevice} class with provided image dimensions, default resolution (=150) and maximum quality.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| width | Image output width. | |
| height | Image output height. |
JpegDevice
Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDevice
Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDevice
Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDevice
Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDevice
Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDevice
Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
JpegDevice
Initializes a new instance of the {@code JpegDevice} class with default resolution and maximum quality.
process
Converts the page into jpeg and saves it in the output stream.
processInternal
Converts the page into jpeg and saves it in the output stream.