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

Home » Public Forums » archive » Polyfill, z-buffer & postscript
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
Polyfill, z-buffer & postscript [message #33793] Mon, 27 January 2003 04:28 Go to next message
Isa Usman is currently offline  Isa Usman
Messages: 13
Registered: October 2001
Junior Member
Hi,

I am using polyfill to plot radar scans directly to postscript. The
resulting files are quite big (~1MB) and I need to make them smaller.Is
there a simple way?

I thought about using the z-buffer to do the plotting then saving it to
postscript like this

loadct,13
!P.MULTI=[0,2,1]
set_plot,'Z'
erase,255
device,set_font='Helvetica',/TT_FONT
device,z_buffering=0

......call to plotting routines (plot,polyfill)

a=tvrd(true=3)
close

set_plot,'ps'
device,/helvetica,/color,bits=8,/encapsulated,xsize=14.8,ysi ze=10.5
device,filename='test.eps'
tv,a,true=3
device,/close

!P.MULTI=0

....the resulting colors are all messed up.

Thanks in advance

Isa
Re: Polyfill, z-buffer & postscript [message #33828 is a reply to message #33793] Sun, 02 February 2003 18:47 Go to previous message
Chris[1] is currently offline  Chris[1]
Messages: 23
Registered: January 2003
Junior Member
It's been a long time since I used the postscript device (and I don't have
my machine handy to double check), but I noticed you had the "bits=8" flag
set in the device call when you are writing out true color (24 bit ) data.
Could this be the problem?

Chris

"Isa Usman" <eepisu@bath.ac.uk> wrote in message
news:b138lk$1cju@newton.cc.rl.ac.uk...
> Hi,
>
> I am using polyfill to plot radar scans directly to postscript. The
> resulting files are quite big (~1MB) and I need to make them smaller.Is
> there a simple way?
>
> I thought about using the z-buffer to do the plotting then saving it to
> postscript like this
>
> loadct,13
> !P.MULTI=[0,2,1]
> set_plot,'Z'
> erase,255
> device,set_font='Helvetica',/TT_FONT
> device,z_buffering=0
>
> ......call to plotting routines (plot,polyfill)
>
> a=tvrd(true=3)
> close
>
> set_plot,'ps'
> device,/helvetica,/color,bits=8,/encapsulated,xsize=14.8,ysi ze=10.5
> device,filename='test.eps'
> tv,a,true=3
> device,/close
>
> !P.MULTI=0
>
> ....the resulting colors are all messed up.
>
> Thanks in advance
>
> Isa
>
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: last array index subscript
Next Topic: Re: Cropping of IDLgrVolume?

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

Current Time: Wed Oct 08 13:49:41 PDT 2025

Total time taken to generate the page: 0.00563 seconds