org.apache.batik.transcoder.image
public class JPEGTranscoder extends ImageTranscoder
Field Summary | |
---|---|
static TranscodingHints.Key | KEY_QUALITY
The encoder quality factor key.
|
Constructor Summary | |
---|---|
JPEGTranscoder()
Constructs a new transcoder that produces jpeg images. |
Method Summary | |
---|---|
BufferedImage | createImage(int width, int height)
Creates a new ARGB image with the specified dimension. |
void | writeImage(BufferedImage img, TranscoderOutput output)
Writes the specified image to the specified output. |
Key: |
KEY_QUALITY |
---|---|
Value: |
Float (between 0 and 1) |
Default: |
1 (no lossy) |
Required: |
Recommended |
Description: |
Specify the JPEG image encoding quality. |
Parameters: width the image width in pixels height the image height in pixels
Parameters: img the image to write output the output where to store the image
Throws: TranscoderException if an error occured while storing the image