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

NameTypeAccessDescription
qualityintReadReturns the JPEG quality setting.
renderingOptionsRenderingOptionsReadReturns the rendering options.
resolutionResolutionReadReturns the resolution used by this device.

méthodes

SignatureDescription
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()intReturns the JPEG quality setting.
getRenderingOptions()RenderingOptionsReturns 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()ResolutionReturns the resolution used by this device.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français