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

Home » Public Forums » archive » Re: TV question...
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
Re: TV question... [message #33810] Fri, 24 January 2003 11:16
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Bruce Bowler (bbowler@bigelow.org) writes:

> I'm using TV to display a bunch of images in the same window. I'd like
> to have a white border around each of the images. It seems to me that
> the easiest way to do that would be to make the background of TV white
> instead of black. Is that possible?

If you have white as an index in your color table,
erase the window with that color before you display
your images. For example, if you have a gray-scale
color table loaded:

LOADCT, 0
ERASE, Color=!D.Table_Size-1
TV, image, etc.

If you are in 24-bit color, you could just do this:

ERASE, Color=fsc_color("white")
TV, image, etc.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: TV question...
Next Topic: Re: IDLgrWindow, IDLgrVolume and alpha channel

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

Current Time: Wed Oct 08 17:12:56 PDT 2025

Total time taken to generate the page: 0.00493 seconds