|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.refimpl.transcoder.AbstractTranscoder | +--org.apache.batik.refimpl.transcoder.ImageTranscoder | +--org.apache.batik.refimpl.transcoder.JpegTranscoder
An ImageTranscoder that produces a jpeg image. The default background color is white.
Fields inherited from class org.apache.batik.refimpl.transcoder.AbstractTranscoder |
hints |
Constructor Summary | |
JpegTranscoder()
Constructs a new jpeg transcoder. |
Method Summary | |
java.awt.image.BufferedImage |
createImage(int w,
int h)
Creates a new image of type RGB. |
java.lang.String |
getMimeType()
Returns the jpeg mime type image/jpeg. |
void |
writeImage(java.awt.image.BufferedImage img,
java.io.OutputStream ostream)
Writes the specified image as a jpeg to the specified ouput stream. |
Methods inherited from class org.apache.batik.refimpl.transcoder.ImageTranscoder |
transcodeToStream |
Methods inherited from class org.apache.batik.refimpl.transcoder.AbstractTranscoder |
addTranscodingHint, getBackgroundPaint, getDefaultViewport, getGVTBuilder, getParserClassName, getTranscodingHints, setTranscodingHints, transcodeToStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JpegTranscoder()
Method Detail |
public java.awt.image.BufferedImage createImage(int w, int h)
createImage
in class ImageTranscoder
w
- the width of the imageh
- the height of the imagepublic void writeImage(java.awt.image.BufferedImage img, java.io.OutputStream ostream) throws java.io.IOException
writeImage
in class ImageTranscoder
img
- the image to writeostream
- the output stream where to write the imagepublic java.lang.String getMimeType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |