[plt-scheme] set-origin and printer-dc%

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Sep 7 18:50:38 EDT 2005

At Wed, 7 Sep 2005 16:00:10 -0400, pedro pinto wrote:
>  I am trying to plot some large images on a printer, breaking the image onto 
> multiple pages. I am puzzled by the behaviour of set-origin.
>  On my printer:
>  (send printer-dc get-size)
>  reports 576x753. I have an image that is let's say, 1152x753. If I try to 
> draw it to the printer only the top half appears (as expected). But when I 
> try to print the bottom by moving the dc origin:
>  (send printer-dc set-origin 0 -576)
>  I see that the origin has moved by much less than half. Is there more than 
> one coordinate system here?

This is Windows, I assume.

Yes, there is a "logical" scale between the printer device and the dc,
so that dc units correspond to points, and that scale wasn't combined
correctly with the origin offset.

This is now fixed in the SVN repository trunk.

Matthew



Posted on the users mailing list.