You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Pierre Héroux <pi...@gmail.com> on 2007/02/21 17:37:05 UTC
area Bounding box
Hi,
I am writing a new renderer and i need to compute the bounding box
(absolute position and dimension) of every area.
How can I do it ?
Any help would be appriciated.
Thanks
Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: area Bounding box
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Pierre Héroux wrote:
> I am writing a new renderer and i need to compute the bounding box
> (absolute position and dimension) of every area.
>
> How can I do it ?
How do you define "bounding box"?
The Area class provides IPD and BPD for the content rectangle
via getIPD()/getBPD() as well as for the allocation rectangle
(content+padding+border+margins) via getAllocIPD()/getAllocBPD().
If you need to map this onto an x/y coordinate system, you probably
have to adjust for the writing mode and reference orientation.
Calculating the absolute positions rather than the dimensions only
has to be done via proper stacking.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org