Home »
Public Forums »
archive »
Re: Printing Images
| Re: Printing Images [message #2649 is a reply to message #2646] |
Thu, 04 August 1994 09:30  |
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
|
|
|
|
Current Time: Fri Nov 28 20:02:14 PST 2025
Total time taken to generate the page: 0.32229 seconds