Re: {x,y}size, scale_factor, and window size [message #62] |
Thu, 08 August 1991 15:13 |
rfinch
Messages: 51 Registered: March 1991
|
Member |
|
|
With help from Jeff Wille of PVI, I found that the strange behavior
going between the screen and Postscript was caused by my use of device
coordinates...basically I was having to do all my own resizing, which
created problems. Jeff pointed out that it's a lot easier in the long
run if everything is done in normal coordinates.
The problem was that I started using device coordinates for raster
plots, normal coordinates for vector draws. It would have been better
if I had started everything in terms of normal, then derived byte
array sizes from those coordinates for the raster plots ('tv'
commands). It helps a lot to use the xsize and ysize args for the tv
command, too. This avoids all the goofy scale factor sizes I was
using in the device command for Postscript.--
Ralph Finch 916-445-0088
rfinch@water.ca.gov ...ucbvax!ucdavis!caldwr!rfinch
Any opinions expressed are my own; they do not represent the DWR
|
|
|
Re: {x,y}size, scale_factor, and window size [message #65 is a reply to message #62] |
Sat, 03 August 1991 10:14  |
ramesh
Messages: 7 Registered: February 1991
|
Junior Member |
|
|
Could the fact that the PostScript device has a variable pixel size whereas
the window on your screen doesn't be *one* explanation for the discrepancy?
A related question: Do you get a grey background when you dump the captured
image (using TVRD) on to the PostScript printer (black & white, not color)?
I tried the same command to capture an image on a window and later dumped it
on to a SPARCprinter and there was this annoying grey background which covers
up much of the detail in the image. Is there any way to overcome this effect?
R.V.
|
|
|
Re: {x,y}size, scale_factor, and window size [message #67 is a reply to message #65] |
Sat, 03 August 1991 20:18  |
rfinch
Messages: 51 Registered: March 1991
|
Member |
|
|
In article <1991Aug3.171437.16034@nevada.edu> ramesh@nevada.edu (RAMESH VISWANATHAN) writes:
> Could the fact that the PostScript device has a variable pixel size whereas
> the window on your screen doesn't be *one* explanation for the discrepancy?
I got the thing to work, but still am not sure how. I might know more
in a couple of days.
> A related question: Do you get a grey background when you dump the captured
> image (using TVRD) on to the PostScript printer (black & white, not color)?
I had a similar problem with color postscript....going to 8
bits_per_pixel fixed it.
--
Ralph Finch 916-445-0088
rfinch@water.ca.gov ...ucbvax!ucdavis!caldwr!rfinch
Any opinions expressed are my own; they do not represent the DWR
|
|
|