Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1337
| Newsgroups | comp.lang.postscript |
|---|---|
| Date | 2013-03-22 23:46 -0700 |
| References | <514c1f6e$0$21949$426a34cc@news.free.fr> |
| Message-ID | <1b58912b-e9ba-4bcf-a2eb-7bf93d072db3@googlegroups.com> (permalink) |
| Subject | Re: translate/rotate combination |
| From | luser- -droog <mijoryx@yahoo.com> |
On Friday, March 22, 2013 4:07:58 AM UTC-5, Lord K. wrote:
> Hi, I can't handle my combination of translate/rotate in the right way :-(
>
>
>
> I want to "run" several postscript files and print them at various place
>
> on a huge poster.
>
>
>
> I would like to define a function with parameters being: <file> <r> <x>
>
> <y>
>
> meaning: go to (x,y) on the page, and rotate the TOP-LEFT edge of the
>
> content of <file> around this (x,y) location with an angle of <r>.
>
>
>
> Bounding box of <file> is well-known and is the same for all files to be
>
> used: 200x2834.64
>
>
>
> Here is my code:
>
>
>
>
>
> /mypart {
>
> gsave
>
> translate
>
> rotate 0 -2834.64 translate
>
> save
>
> /showpage {} def
>
> /setpagedevice /pop load def
>
> 0 0 translate
>
> 1 1 scale
>
> exch run %(BBox of file is 200 x 2834.64)
>
> restore
>
> grestore
>
> } bind def
>
> (part_1.ps) 90 500 0 mypart
>
> (part_2.ps) 0 2000 1000 mypart
>
>
>
>
>
> But obviously it doesn't work at all. What is wrong? Regards.
BTW, that's a tight little procedure. You've been reading the Green Book, ain'tcha?
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
translate/rotate combination "Lord K." <kax@kax.org> - 2013-03-22 09:07 +0000
Re: translate/rotate combination luser- -droog <mijoryx@yahoo.com> - 2013-03-22 23:44 -0700
Re: translate/rotate combination "Lord K." <kax@kax.org> - 2013-03-25 09:28 +0000
Re: translate/rotate combination luser- -droog <mijoryx@yahoo.com> - 2013-03-22 23:46 -0700
Re: translate/rotate combination John Deubert <john@acumentraining.com> - 2013-03-24 07:30 -0700
csiph-web