Re: idl, postscript, color [message #7286] |
Wed, 23 October 1996 00:00  |
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)
|
|
|