xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38379] New: - Transcoder Tutorial error for KEY_WIDTH
Date Wed, 25 Jan 2006 09:34:09 GMT
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@xmlgraphics.apache.org
        ReportedBy: jpmoresmau@hotmail.com


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Mime
View raw message