xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keiron Liddle <kei...@aftexsw.com>
Subject Re: coordinates
Date Thu, 02 Jan 2003 11:20:05 GMT
On Thu, 2003-01-02 at 12:15, Oleg Tkachenko wrote:
> Hello!
> I'm stuck in understanding the coordinate system trying to sort out writing 
> mode stuff, e.g. in this snippet from SimplePageMaster.java:
> 
>      /* Create the page reference area rectangle in first quadrant coordinates
>       * (ie, 0,0 is at bottom,left of the "page media" and y increases
>       * when moving towards the top of the page.
>       * The media rectangle itself is (0,0,pageWidth,pageHeight).
>       */
>      Rectangle pageRefRect =
>          new Rectangle(mProps.marginLeft, mProps.marginTop,
>                pageWidth - mProps.marginLeft - mProps.marginRight,
>                pageHeight - mProps.marginTop - mProps.marginBottom);
> 
> am I right that the comment is wrong and 0,0 is really at top-left?

Yes, you are right.
That appears to be the old coordinate system which was tied to the pdf
coordinate system.
The new way is to have 0,0 at the top left.
It appears that some of the page master stuff hasn't been updated.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Mime
View raw message