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

Home » Public Forums » archive » Re: {x,y}size, scale_factor, and window size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: {x,y}size, scale_factor, and window size [message #62] Thu, 08 August 1991 15:13
rfinch is currently offline  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 Go to previous message
ramesh is currently offline  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 Go to previous message
rfinch is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Postscript aggravation (RE: size)
Next Topic: Re: Code area full?

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

Current Time: Sun Oct 12 16:52:11 PDT 2025

Total time taken to generate the page: 0.71958 seconds