Hello all I have been using Batik at a very basic level for a while - just rasterising SVG images.
I would like to add anti-aliasing to improve the appearance of the text. I have seen a little discussion about this in the mail archives but no examples of how to do it. There seems to be something in the PreferenceManager but I'm not sure - maybe I need a Transcoding Hint ? Could someone tell me how to get anti-aliasing, please ? Thanks Chris Broadly, my code is like this to create a PNG. //HashMap defaults = new HashMap(); //defaults.put("antialias", Boolean.TRUE); //PreferenceManager prefs = new PreferenceManager("application.ini", defaults); PNGTranscoder t = new PNGTranscoder(); String svgURI = new File(new String("input.svg")).toURL().toString(); String svgMap = new String("output.png"); TranscoderInput input = new TranscoderInput(svgURI); OutputStream ostream = new FileOutputStream(svgMap); TranscoderOutput output = new TranscoderOutput(ostream); t.transcode(input, output); try { ostream.flush(); } catch ( IOException ioe ) { } try { ostream.close(); } catch ( IOException ioe ) { } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]