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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to