ImageCanvas transparency

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

ImageCanvas transparency

Blandine Chanteloup
Does anybody know if it is possible to make an ImageCanvas transparent ?
I would like to superimpose 2 ImageCanvas ...  

- Blandine
Reply | Threaded
Open this post in threaded view
|

Re: ImageCanvas transparency

dscho
Hi,

On Mon, 26 Feb 2007, Blandine Chanteloup-Forêt wrote:

> Does anybody know if it is possible to make an ImageCanvas transparent ?
> I would like to superimpose 2 ImageCanvas ...

At the moment, this is not possible. ImageJ uses AWT, which does not allow
transparent components.

Ciao,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: ImageCanvas transparency

Albert Cardona
You could just use the java.awt.Image, obtained from the
ImagePlus.getImage, and paint it with transparency by setting the alpha
in the Graphics object of your Component.
To paint ROIs same thing: get it from the ImagePlus.getRoi() and call
paint on it passing your Graphics object.

Albert

>> Does anybody know if it is possible to make an ImageCanvas transparent ?
>> I would like to superimpose 2 ImageCanvas ...
>>    
>
> At the moment, this is not possible. ImageJ uses AWT, which does not allow
> transparent components.
>  
Reply | Threaded
Open this post in threaded view
|

Re: ImageCanvas transparency

Blandine Chanteloup
In reply to this post by dscho
Johannes Schindelin a écrit :

>Hi,
>
>On Mon, 26 Feb 2007, Blandine Chanteloup-Forêt wrote:
>
>  
>
>>Does anybody know if it is possible to make an ImageCanvas transparent ?
>>I would like to superimpose 2 ImageCanvas ...
>>    
>>
>
>At the moment, this is not possible. ImageJ uses AWT, which does not allow
>transparent components.
>
>Ciao,
>Dscho
>  
>
OK
Thanks

- Blandine

--

Attention: au 1er janvier 2007, nouvelle adresse!
UMR-S 836 Inserm-UJF-CEA "Grenoble - Institut des Neurosciences"
Equipe : Neuroimagerie Fonctionnelle et Métabolique
                (Anciennement Unité Mixte INSERM/UJF 594)
CHU Grenoble - Pavillon B
BP 217
38043 Grenoble Cedex 9

Tél :  04 76 76 88 96
Fax : 04 76 76 58 96
E-mail : [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: ImageCanvas transparency

Blandine Chanteloup
In reply to this post by Albert Cardona
Albert Cardona a écrit :

> You could just use the java.awt.Image, obtained from the
> ImagePlus.getImage, and paint it with transparency by setting the
> alpha in the Graphics object of your Component.
> To paint ROIs same thing: get it from the ImagePlus.getRoi() and call
> paint on it passing your Graphics object.
>
> Albert
>
>>> Does anybody know if it is possible to make an ImageCanvas
>>> transparent ? I would like to superimpose 2 ImageCanvas ...
>>>    
>>
>>
>> At the moment, this is not possible. ImageJ uses AWT, which does not
>> allow transparent components.
>>  
>
OK
Thanks

- Blandine

--

Attention: au 1er janvier 2007, nouvelle adresse!
UMR-S 836 Inserm-UJF-CEA "Grenoble - Institut des Neurosciences"
Equipe : Neuroimagerie Fonctionnelle et Métabolique
                (Anciennement Unité Mixte INSERM/UJF 594)
CHU Grenoble - Pavillon B
BP 217
38043 Grenoble Cedex 9

Tél :  04 76 76 88 96
Fax : 04 76 76 58 96
E-mail : [hidden email]