🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #4117

Re: stretchy bitmaps

#4117
From: Paul Gilmartin
Date: Fri, 09 Oct 1992 20:16
27 lines
1397 bytes
Rene Magritte (rene@hardy.u.washington.edu) wrote:

:     I have a normal bitmap in postscript which prints just fine.  I
: want to be able to irregularly scale it and print the results, so that
: the resultant image will be "squashed" or "thin."  How do I manage
: this -- is it easily possible?

Quite easy;  this is one of the things PostScript does best.
It will look something like this:

	[ ... ]   % PostScript header, presumably
	gsave     % save the graphic state
	    0.5 1.0 scale    % set up to "squash" the bitmap

%%BeginDocument
	    [ ... ]          % your bitmap goes here
%%EndDocument

	grestore  % put things back as we found them
	[ ... ]   % PostScript trailer, presumably

But you need to read the Adobe PostScript Language Reference
to become proficient at this; I probably forgot some details.

I hope this encourages you.

gil
Technical Details
Message-ID: <1992Oct9.201618.25631@stortek.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!hellgate.utah.edu!csn!stortek!sanitas!pg
References: <1992Oct2.225206.29720@u.washington.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!hellgate.utah.edu!csn!stortek!sanitas!pg
From: pg@sanitas.stortek.com (Paul Gilmartin)
Subject: Re: stretchy bitmaps
Message-ID: <1992Oct9.201618.25631@stortek.com>
Sender: usenet@stortek.com
Nntp-Posting-Host: sanitas.stortek.com
Organization: Storage Technology Corp.
X-Newsreader: TIN [version 1.1 PL6]
References: <1992Oct2.225206.29720@u.washington.edu>
Date: Fri, 9 Oct 1992 20:16:18 GMT
Lines: 27