JpegDevice
Vue de l’ensemble
‘JpegDevice’ est une classe dans Aspose.PDF FOSS pour Java.
Render une page PDF au format JPEG avec qualité de compression configurable.
Cette classe fournit 12 méthodes pour travailler avec les objets JpegDevice dans les programmes Java. Les méthodologies disponibles comprennent: ‘JpgDivice’, ‘getQuality’, `getRenderingOptions’, ‘getResolution’, ‘process’ et ‘setRending Options’. Tous les membres publics sont accessibles à n’importe quelle application Java après l’installation de l’Aspose.PDF FOSS pour le package Java, propriétés : ‘qualité’, ’renderingsOption’, «résolution’.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
quality | int | Read | Returns the JPEG quality setting. |
renderingOptions | RenderingOptions | Read | Returns the rendering options. |
resolution | Resolution | Read | Returns the resolution used by this device. |
méthodes
| Signature | Description |
|---|---|
JpegDevice() | Creates a JPEG device with the default 150 DPI resolution and quality 100. |
JpegDevice(quality: int) | Creates a JPEG device with the default 150 DPI resolution and the given |
| quality. | |
JpegDevice(width: int, height: int) | Creates a JPEG device with explicit pixel dimensions and the default |
| 150 DPI resolution + quality 100. | |
JpegDevice(width: int, height: int, resolution: Resolution) | Creates a JPEG device with explicit pixel dimensions, resolution, and |
| default quality 100. | |
JpegDevice(resolution: Resolution) | Creates a JPEG device with the given resolution and default quality (100). |
JpegDevice(resolution: Resolution, quality: int) | Creates a JPEG device with the given resolution and quality. |
JpegDevice(width: int, height: int, resolution: Resolution, quality: int) | Creates a JPEG device with explicit dimensions, resolution, and quality. |
getQuality() → int | Returns the JPEG quality setting. |
getRenderingOptions() → RenderingOptions | Returns the rendering options. |
setRenderingOptions(options: RenderingOptions) | Sets the rendering options. |
process(page: Page, output: OutputStream) | Renders a page and writes the result to the output stream. |
getResolution() → Resolution | Returns the resolution used by this device. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise