non-destructive graphic overlay

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

non-destructive graphic overlay

Tim de Wit
hi,

i was wondering whether it's possible to use two different colors in a non-
destructive graphic overlay. I tried to use ImageCanvas.setDisplayList()
but it only allows you to use one color at a time. If i call setDisplayList
() twice, the first overlay is automatically erased.

thanks,

Tim de Wit
Reply | Threaded
Open this post in threaded view
|

Re: non-destructive graphic overlay

Duane and Julie
Tim,

I have never used ImageCanvas.setDisplayList(), but I have written  
multiple colors to a non-destructive graphic overlay.  I create a  
custom canvas and draw to that.

I guess that means it's possible.

    duane

On Sep 27, 2007, at 6:32 AM, Tim de Wit wrote:

> hi,
>
> i was wondering whether it's possible to use two different colors  
> in a non-
> destructive graphic overlay. I tried to use  
> ImageCanvas.setDisplayList()
> but it only allows you to use one color at a time. If i call  
> setDisplayList
> () twice, the first overlay is automatically erased.
>
> thanks,
>
> Tim de Wit
Reply | Threaded
Open this post in threaded view
|

Re: non-destructive graphic overlay

Wayne Rasband
In reply to this post by Tim de Wit
There is an example at

     
http://rsb.info.nih.gov/ij/plugins/download/ 
MultiColor_Graphic_Overlay.java

that demonstrates how to create a display list that uses more than one  
color. It requires the latest daily build (1.39f) at

     http://rsb.info.nih.gov/ij/ij.jar

-wayne

On Sep 27, 2007, at 6:32 AM, Tim de Wit wrote:

> hi,
>
> i was wondering whether it's possible to use two different colors in a  
> non-
> destructive graphic overlay. I tried to use  
> ImageCanvas.setDisplayList()
> but it only allows you to use one color at a time. If i call  
> setDisplayList
> () twice, the first overlay is automatically erased.
>
> thanks,
>
> Tim de Wit
>