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

Home » Public Forums » archive » Re: Display two images on one position
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: Display two images on one position [message #28660 is a reply to message #28659] Sun, 23 December 2001 14:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Oliver Emmle (oemmler@ix.urz.uni-heidelberg.de) writes:

> i want to display two images on one position. I do this by using the
> attached Code becuase i don't want the pixels of IMAGE being erased when
> using the TV function for HIGHLIGHT.
>
> My Question:
> - Is there a shorter way to display to images like in the code ?
> - Is it possible to set some of the pixels of one image transparent ?
>
> Can anyone help ?

You can find an article on how to create
transparent images in both direct graphics and
object graphics here:

http://www.dfanning.com/color_tips/color_overlay.html

> TV, image
> LoadCT,5
> FOR x = 0,510 DO BEGIN
> FOR y = 0,510 DO BEGIN
> IF highlight(x,y) NE 0 THEN TV, highlight(x:x+1,y:y+1),x,y
> ENDFOR
> ENDFOR

At the very least, you can speed this code up
tremendously by doing this:

TV, image
LoadCT, 5
TV, highlight * (highlight NE 0)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Write_Image
Next Topic: Re: Display two images on one position : or even three!

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

Current Time: Sat Oct 11 15:23:42 PDT 2025

Total time taken to generate the page: 0.40372 seconds