public final class JpegDevice extends ImageDevice
Represents image device that helps to save pdf document pages into jpeg.
Constructor and Description |
---|
JpegDevice()
Initializes a new instance of the
JpegDevice class with default resolution and
maximum quality. |
JpegDevice(int quality)
Initializes a new instance of the
JpegDevice class. |
JpegDevice(int width,
int height)
Initializes a new instance of the
JpegDevice class with provided image dimensions,
default resolution (=150) and maximum quality. |
JpegDevice(int width,
int height,
Resolution resolution)
Initializes a new instance of the
JpegDevice class with provided image dimensions,
resolution and maximum quality. |
JpegDevice(int width,
int height,
Resolution resolution,
int quality)
Initializes a new instance of the
JpegDevice class with provided image dimensions,
resolution and quality. |
JpegDevice(PageSize pageSize)
Initializes a new instance of the
JpegDevice class with provided page size, default
resolution (=150) and maximum quality. |
JpegDevice(PageSize pageSize,
Resolution resolution)
Initializes a new instance of the
JpegDevice class with provided page size,
resolution and maximum quality. |
JpegDevice(PageSize pageSize,
Resolution resolution,
int quality)
Initializes a new instance of the
JpegDevice class with provided page size,
resolution and quality. |
JpegDevice(Resolution resolution)
Initializes a new instance of the
JpegDevice class. |
JpegDevice(Resolution resolution,
int quality)
Initializes a new instance of the
JpegDevice class. |
Modifier and Type | Method and Description |
---|---|
void |
process(Page page,
OutputStream output)
Converts the page into jpeg and saves it in the output stream.
|
void |
processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Converts the page into jpeg and saves it in the output stream.
|
getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, isShadingPerformanceHigh, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptions, setShadingPerformanceHigh
process, process
public JpegDevice()
Initializes a new instance of the JpegDevice
class with default resolution and
maximum quality.
public JpegDevice(Resolution resolution)
Initializes a new instance of the JpegDevice
class.
resolution
- Resolution for the result image file, see Resolution
class.public JpegDevice(int quality)
Initializes a new instance of the JpegDevice
class.
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.public JpegDevice(Resolution resolution, int quality)
Initializes a new instance of the JpegDevice
class.
resolution
- Resolution for the result image file, see Resolution
class.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.public JpegDevice(int width, int height)
Initializes a new instance of the JpegDevice
class with provided image dimensions,
default resolution (=150) and maximum quality.
width
- Image output width.height
- Image output height.public JpegDevice(PageSize pageSize)
Initializes a new instance of the JpegDevice
class with provided page size, default
resolution (=150) and maximum quality.
pageSize
- Page size of the output image.public JpegDevice(int width, int height, Resolution resolution)
Initializes a new instance of the JpegDevice
class with provided image dimensions,
resolution and maximum quality.
width
- Image output width.height
- Image output height.resolution
- Resolution for the result image file, see Resolution
class.public JpegDevice(PageSize pageSize, Resolution resolution)
Initializes a new instance of the JpegDevice
class with provided page size,
resolution and maximum quality.
pageSize
- Page size of the output image.resolution
- Resolution for the result image file, see Resolution
class.public JpegDevice(int width, int height, Resolution resolution, int quality)
Initializes a new instance of the JpegDevice
class with provided image dimensions,
resolution and quality.
width
- Image output width.height
- Image output height.resolution
- Resolution for the result image file, see Resolution
class.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.public JpegDevice(PageSize pageSize, Resolution resolution, int quality)
Initializes a new instance of the JpegDevice
class with provided page size,
resolution and quality.
pageSize
- Page size of the output image.resolution
- Resolution for the result image file, see Resolution
class.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.public void processInternal(Page page, com.aspose.ms.System.IO.Stream output)
Converts the page into jpeg and saves it in the output stream.
processInternal
in class PageDevice
page
- The page to convert.output
- Output stream with jpeg image.public void process(Page page, OutputStream output)
Converts the page into jpeg and saves it in the output stream.
process
in class PageDevice
page
- The page to convert.output
- Output stream with jpeg image.