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

Home » Public Forums » archive » Q: How does "TV, bwtable (image)" work?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Q: How does "TV, bwtable (image)" work? [message #1059] Sun, 13 June 1993 20:47
mayor is currently offline  mayor
Messages: 9
Registered: May 1993
Junior Member
In the April 1992 issue of IDL News on page 4, I found a "Tech Tip"
on how to make color images into Postscript halftones. It says:

TVLCT, r, g, b, /GET
bwtable = BYTSCL(.3*r + .59*g + .11*b)
SET_PLOT,'PS'
DEVICE,BITS_PER_PIXEL=8
TV, bwtable (image)
DEVICE, /CLOSE

Could someone explain how the TV command in this example works?

Also, now that I have a halftoned image, I need to draw a halftoned legend
using polyfills and I have to draw lines where I control whether they are
done in black or white. Before I switched to halftones, this was easy.
All I had to do was use the color keyword. Now, how do I refer to the
specific shades of the halftone table?

============================================================ ====================
Shane D. Mayor, Lidar Applications Group, NASA Langley Research Center,
Mail Stop 401A, Hampton, Virginia 23681-0001, USA
Internet: MAYOR@VAXINE.LARC.NASA.GOV Phone: 804-864-7598 Fax: 804-864-7790
============================================================ ====================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: New TIMER keyword in widget_control
Next Topic: IDL3.1: contour is broken (or sloooooooow) !!!!

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

Current Time: Fri Nov 28 09:42:52 PST 2025

Total time taken to generate the page: 0.26397 seconds