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

Home » Public Forums » archive » Re: object -> direct (colors)
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: object -> direct (colors) [message #13407 is a reply to message #13404] Wed, 04 November 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Sean O'Sea (seanosea@my-dejanews.com) is on the Path when he writes:

> Dia daoibh!
>
> So, I've decided to go with the IDLgrBuffer idea--rendering to the buffer,
> then getting the rastered image with IMAGE_DATA keyword and tv'ing the image
> to PostScript by set_plot, 'ps'.
>
> I have a new question about colors. IMAGE_DATA returns an array of dimension
> (3,xsize,ysize). The "3" is the color issue: if I make a black plot object
> and rasterize, all three color slots have the line information. If I make a
> red plot object, then (perhaps a little surprisingly) only (1,*,*) and
> (2,*,*) show a line, (0,*,*) having just background.
>
> So, I guess I need an i-j loop that considers each (*,i,j), assigning a number
> to a new array (i,j) based upon the three color slots? Then tv will have all
> the information in a single array, as it appears to like it.
>
> Am I right about this? or do I misunderstand?

Ah, I think you misunderstand, but only slightly. :-)

What you want to do is take that 3D image you get and write
it to your PostScript file like this:

Set_Plot, 'PS'
Device, Bits_Per_Pixel=8 ; (Plus whatever else. See web page.)
TV, niceObject24bitImage, True=1

> metaphysics is the job of cutting the beast of reality by the joints.

Damn straight! :-)

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: One for the experts...
Next Topic: ROI stats?

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

Current Time: Sat Oct 11 14:39:23 PDT 2025

Total time taken to generate the page: 2.04163 seconds