Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
1.8
-
None
-
None
-
Description
The Transcoder tutorial on the batik web site give the following code snippet
for resizing the output:
t.addTranscodingHint(JPEGTranscoder.KEY_WIDTH, new Integer(100));
The KEY_WIDTH is actually on SVGAbstractTranscoder (some IDEs give a warning)
but in my tests this is refused at runtime with an IllegalArgumentException: the
javadoc states KEY_WIDTH is a Float:
t.addTranscodingHint(SVGAbstractTranscoder.KEY_WIDTH, new Float(100));
is the correct snippet