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

Home » Public Forums » archive » Re: idl, postscript, color
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: idl, postscript, color [message #7286] Wed, 23 October 1996 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Klaus Bramstedt wrote:
> I have to plot TrueColor pictures in IDL. These pictures contain colors
> defined as RGB-values. On a TrueColor X-Display everything works fine
> with about 16 million colors, i get very nice pictures. I want to plot
> this pictures on a PostScript color printer. But the 'ps' device in IDL
> only allows 256 colors, which is definitily too less for my pictures.
> Has someone any idea, how to put my pictures on paper?

See the IDL Reference Manual section on 'The Postscript Device',
in particular the section on 'True-Color Images', which says in part

(begin quote)
Use the TRUE keyword to the TV and TVSCL procedures to indicate that the
image is a true-color image and to specify the dimension over which
color is interleaved. A value of 1 specifies pixel interleaving, 2 is
row interleaving, and 3 is image interleaving. The following example
writes a 24-bit image, interleaved over the 3rd dimension, to a
PostScript file:

SET_PLOT, 'PS'
;Set the PostScript device to *8* bits per color, not 24:
DEVICE, FILE='24bit.ps', /COLOR, BITS=8
TV, [[[r]], [[g]], [[b]]], TRUE=3
DEVICE, /CLOSE
(end quote)
[Message index]
 
Read Message
Read Message
Previous Topic: Wanted: optical ray tracing
Next Topic: Lottery Information

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

Current Time: Sat Oct 11 15:12:16 PDT 2025

Total time taken to generate the page: 1.44111 seconds