xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Neumann <neum...@karto.baug.ethz.ch>
Subject Re: Java2D Shape From SVG File.
Date Thu, 22 Jun 2006 07:13:06 GMT
Hi,

can you define "file bounding box"? I don't know this term. Do you mean 
the bounding box of all elements in a file?

In the SVG DOM there is a method called .getBBox() that you can call on 
any graphics or group element. It returns a SVGRect object with .x .y 
.width and .height properties. This bounding box does not take into 
account stroke-width, though.

I don't know if that is what you need.

Andreas

Дмитрий wrote:

> Hi.
>
> I need to receive for each object in SVG its file bounding box.
> Can anybody tell to me as to receive Java2D Shape's from existing SVG 
> a file?
>
> Thanks in advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>


-- 
----------------------------------------------
Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093  Zurich, Switzerland

Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: neumann@karto.baug.ethz.ch
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/


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


Mime
View raw message