net.xoetrope.optional.laf.synth.batik
Class PngTranscoderWrapper
java.lang.Object
net.xoetrope.optional.laf.synth.batik.PngTranscoderWrapper
- All Implemented Interfaces:
- ImageConverter
public class PngTranscoderWrapper
- extends java.lang.Object
- implements ImageConverter
Wrap the Batik PNGTranscoder to support dynamic loading
Copyright (c) Xoetrope Ltd., 2001-2005
License: see license.txt
$Revision: 1.3 $
|
Method Summary |
boolean |
convert(java.io.InputStream is,
java.io.OutputStream os,
int width,
int height)
Convert one image format to another |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PngTranscoderWrapper
public PngTranscoderWrapper()
convert
public boolean convert(java.io.InputStream is,
java.io.OutputStream os,
int width,
int height)
- Convert one image format to another
- Specified by:
convert in interface ImageConverter
- Parameters:
is - the input stream for the source imageos - the output steam for the resulting/converted imagewidth - the desired image widthheight - the desired image height
- Returns:
- true for successful conversion, false otherwise