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

Home » Public Forums » archive » color question
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: Color question [message #24479 is a reply to message #19825] Wed, 04 April 2001 10:15 Go to previous messageGo to previous message
rkj is currently offline  rkj
Messages: 66
Registered: February 1996
Member
Ok, here is some sample code that will hopefully demonstrate
problem of grainy colors using TV on a postscript device. You
will need a color postscript printer to verify this.

SET_PLOT, 'PS'
DEVICE, Bits_Per_Pixel=8, /Color
TEK_COLOR ; or create your own discrete colormap
bar=BYTARR(200,1000)
FOR i=0,999 DO bar(*,i)=i*9/1000
TV, bar, /Device
PLOT, INDGEN(10), Color=7, Charthick=3, Thick=5, /Noerase
DEVICE, /Close

Print it out and you should see that the plot is a "pure"
yellow but the bar yellow is "grainy."

I guess there is a difference between a plot and an image
on a postscript device. Plots seem to use filled polygons
(which give pure colors) while images appear to use pixels
or dots.

Kyle
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Color Question
Next Topic: Apple "Switched" spoof

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

Current Time: Fri Oct 10 02:33:07 PDT 2025

Total time taken to generate the page: 1.44195 seconds