Article View: comp.lang.postscript
Article #3924Re: Boundingbox???
From: Robert M. Fuhrer
Date: Fri, 02 Oct 1992 01:36
Date: Fri, 02 Oct 1992 01:36
27 lines
1738 bytes
1738 bytes
On a tangential note, it seems to me that a good way to write Postscript code for pictures (which allows them to be easily embedded inside other structures) is to always generate them within the coordinate space (0,0) -> (1,1). They can then be scaled, rotated, and translated appropriately so as to occupy the desired region. It also seems to me that there is a class of pictures for which the actual dimensions of the picture on the output medium is not interesting; rather, the picture should simply fill the output medium. Ok, you probably want to preserve the aspect ratio. So, then you are left with the question "what is the largest this picture can be scaled uniformly in both dimensions and still fit in the output medium?" Answering this question requires that you know the output medium's dimensions, right? So, I set about figuring out how to calculate this in Postscript, and found that it didn't seem to be possible independent of language level. The 'getdeviceparms' call seemed appropriate, but isn't defined for Level 1 interpreters. Has anyone come up with code to do this? Does someone think I am on the "wrong track"? -- -- Bob
Technical Details
Message-ID:
<RMF.92Oct1203636@chopin.cs.columbia.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!sol.ctr.columbia.edu!news.cs.columbia.edu!cs!rmfReferences:
<1992Sep30.135915.6102@donau.et.tudelft.nl>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!gumby!destroyer!sol.ctr.columbia.edu!news.cs.columbia.edu!cs!rmf From: rmf@chopin.cs.columbia.edu (Robert M. Fuhrer) Subject: Re: Boundingbox??? In-Reply-To: andreas@dutedib.et.tudelft.nl's message of Wed, 30 Sep 1992 13:59:15 GMT Message-ID: <RMF.92Oct1203636@chopin.cs.columbia.edu> Sender: news@cs.columbia.edu (The Daily News) Organization: Computer Science Dept., Columbia Univ. References: <1992Sep30.135915.6102@donau.et.tudelft.nl> Date: Fri, 2 Oct 1992 01:36:36 GMT Lines: 27