|
||||||||||
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.PngTranscoder
An ImageTranscoder that produces a png image. The default background color is transparent.
Fields inherited from class org.apache.batik.refimpl.transcoder.AbstractTranscoder |
hints |
Constructor Summary | |
PngTranscoder()
Constructs a new png transcoder. |
Method Summary | |
java.awt.image.BufferedImage |
createImage(int w,
int h)
Creates a new image of type ARGB with the specified dimension. |
java.lang.String |
getMimeType()
Returns the png mime type image/png. |
void |
writeImage(java.awt.image.BufferedImage img,
java.io.OutputStream ostream)
Writes the specified image as a png 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 PngTranscoder()
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 |