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

Home » Public Forums » archive » Re: Device's bits_per_pixel keyword
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: Device's bits_per_pixel keyword [message #13452 is a reply to message #13436] Wed, 11 November 1998 00:00 Go to previous message
Harald Frey is currently offline  Harald Frey
Messages: 41
Registered: March 1997
Member
Charles Cavanaugh wrote:

> I have a program that generates color postscript plots, and I want to
> make the files
> smaller. I have tried :
>
> set_plot, 'PS'
> device, bits_per_pixel = 2
> .
> .
> .
> device, /close
>
> but the file generated is only very slightly smaller than when I do
> not use the
> bits_per_pixel keyword. I've also tried bits_per_pixel = 1, 4 and 8,
> but the file
> size change is so very slight (and in some cases larger then when the
> keyword
> is not used).
>
> If anyone has been able to generate considerably smaller postscript
> files by using
> the bits_per_pixel keyword, please let me know how to do that. Thank
> you.
>
> I'm using IDL 5.1 on an SGI workstation running IRIX 6.5.1.
>
>
> Charles
>
> --
> Charles Cavanaugh
> MOPITT & HIRDLS Programs
> National Center for Atmospheric Research
> Boulder, CO, USA
> email: cavanaug@ucar.edu
> phone: (303) 497-2919
> fax : (303) 497-2920
>
>

bits_per_pixel has nothing to do with the size of the PS output, it is
just the number of bits that is adjusted to each pixel and allows
display in black/white or in any of 255 grey-levels. You have to use the
xsize and ysize keywords.

set_plot,'ps'
device,xsize=15.,ysize=15.,xoffset=3.,yoffset=5.,scale_facto r=1.,bits=8,/color

.
.
device,/close


Harald
hfrey@ssl.berkeley.edu
[Message index]
 
Read Message
Read Message
Previous Topic: passing object references
Next Topic: Re: avoiding for loops

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

Current Time: Sat Oct 11 15:51:30 PDT 2025

Total time taken to generate the page: 2.79967 seconds