xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Kwan" <gbkhm...@hotmail.com>
Subject How to transform SVG to Java Graphics2D?
Date Mon, 16 Feb 2004 01:56:45 GMT
System Configuration:
Operating System: Microsoft Windows 2000 Professional
JDK Version: J2SDK 1.4.2_03
Batik Version: Batik 1.5

Problem Description:
How to transform SVG into Java Graphics2D? Have tried to transform into JPEG
and then used it by ImageIcon of Java, but there is a problem, for example,
there is a svg drawing with canvas size 100 * 100, but the shape only have
used 50 * 50 space of canvas, so as it transform into JPEG, it would become
a graphics with original size. So even using scaling the resize its size, as
the size of canvas is relative big to the shape, so the drawing resize, it
would become much smaller, and even cannot see the shape. what is more,
graphics2d don't have method to "cut" the blank space of the graphics.

Thanks for answering.


Get 10Mb extra storage for MSN Hotmail. Subscribe Now! 

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

View raw message