DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38379>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38379
Summary: Transcoder Tutorial error for KEY_WIDTH
Product: Batik
Version: 2.0
Platform: Other
URL: http://xml.apache.org/batik/rasterizerTutorial.html
OS/Version: other
Status: NEW
Severity: trivial
Priority: P2
Component: Web Site
AssignedTo: batik-dev@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: jpmoresmau@xxxxxxxxxxx
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
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
|