Path: utzoo!utgpu!attcan!uunet!husc6!think!ames!mailrus!uwmcsd1!ig!agate!ucbvax!decwrl!labrea!polya!kaufman From: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Newsgroups: comp.sys.mac.programmer Subject: Re: How to change a printing port's portrect? Message-ID: <3425@polya.Stanford.EDU> Date: 27 Jul 88 16:24:40 GMT References: <873@taux01.UUCP> Reply-To: kaufman@polya.Stanford.EDU (Marc T. Kaufman) Organization: Stanford University Lines: 18 In article <873@taux01.UUCP> taux01!cyosta@nsc.UUCP (Yossie Silverman) writes: > ...Anyway, after many games I figured out that I should change >the clipRect with the clipRect call, the viewRgn with a rectRgn call >(directely accessing the grafPort record element), and the >bitmap's bounds variable. I can envision a few problems with what >I did: Yes, indeed. First, you have to realize that a Printing Grafport reflects (in portRect) the page size you set up in Page Setup. It may, or may not, even HAVE a bitmap (much less a bitmap.bounds -- in the Printing Grafports I set up for spooling, bitmap.bounds is (0,0,0,0)). Yes, you should set the clipRect to portRect, and the visRgn to clipRgn. However... if the printing area is not right, try setting the desired size in your print record and then do a Validate on it. What comes back should be somehow related to the best approximation the printer can give you. Marc Kaufman (kaufman@polya.stanford.edu)