W3C home > Mailing lists > Public > www-svg@w3.org > September 2007

Re: Best way to get the the bbox of an element with respect to its transformations?

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Tue, 11 Sep 2007 20:37:29 +0200
To: www-svg@w3.org
Message-Id: <200709112037.29372.Dr.O.Hoffmann@gmx.de>

I think, this will not be sufficient just to transform the
user-space bounding box. Because the bounding box is
always aligned along the x- and y-axis, already a simple
rotation can result in a complete different bounding box
not neccessarily related to the screen bounding box of
the rotated user-space bounding box. 

For a bezier curve for example the formula for the
curve can be transformed with the transform matrix
(something like the CTM) to screen coordinates. 
On this construction/formula the minima and maxima 
for x and y can be searched.
Received on Tuesday, 11 September 2007 18:48:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 19:59:27 UTC