comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Printing Images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Printing Images [message #2649 is a reply to message #2646] Thu, 04 August 1994 09:30 Go to previous message
zawodny is currently offline  zawodny
Messages: 121
Registered: August 1992
Senior Member
In article <31qsi4$33v@reznor.larc.nasa.gov> tai@rockola.larc.nasa.gov (Alan Tai) writes:
> I'm having some problems printing an image to a Postscript device. By
> using the same dimensions for the image as the X display (240 x 260),
> the plot comes out larger than it should be (weird--I kind of expected
> it to be a lot smaller). I tried re-scaling the image for the
> postscript device but ended up trying in vain to congrid a 12000 x
> 12000 byte array. Does anyone have any suggestions? Thanks.
>
>
> Alan

Congrid the image to the size that is appropriate for the amount of detail
you wish to retain in the image (240x260 sounds like a good starting point).
Then use the fact that PostScript has scaleable pixels and TV the image using
the xsize, ysize, & /NORMAL keywords to scale the image correctly. This will
probably entail some extra code (mostly CONVERT_COORD calls) to calculate
the correct values of xsize and ysize (as well as the x and y parameters to the
TV call). I once tried to use the /DATA key to TV but this did not work as
expected (maybe it does now). It also did not work when I was using log axies.

--
Joseph M. Zawodny (KO4LW) NASA Langley Research Center
Internet: zawodny@arbd0.larc.nasa.gov MS-475, Hampton VA, 23681-0001
TCP/IP: ko4lw@ko4lw.ampr.org Packet: ko4lw@n4hog.va.usa
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Freebies & Giveaways
Next Topic: HELP!!! ^Z

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Nov 29 07:45:46 PST 2025

Total time taken to generate the page: 0.08195 seconds