Login  Register

Re: Displaying two images in the same window

Posted by Duane and Julie on Sep 04, 2006; 12:42pm
URL: http://imagej.273.s1.nabble.com/Displaying-two-images-in-the-same-window-tp3701674p3701675.html

Yoav,

I recently displayed two images in the same window for debugging.  
It's pretty easy to do.

I created a new ImagePlus that is the width of both images plus a  
separation and the height of the tallest image.
I blitted the first image to 0,0 and the second to 0+firstWidth
+separation,0.
I then drew a separator bar in the separation area.

I then drew some overlays on top of both images, but that is a  
different story.  :-)

Having the two images side by side provides a great visual.

Hope that helps,

    duane

On Sep 4, 2006, at 5:31 AM, Yoav Rubin wrote:

> Hi, I'm developing a plugin that show some relationship between two  
> tiff images (that the user selects). One is the source image and  
> one is the analyzed one, is it possible to open the two images in  
> the same window, or i have to show these two images in different  
> windows?
>
>   thanks
>   Yoav
>
>  
> ---------------------------------
> Get your email and more, right on the  new Yahoo.com