Displaying two images in the same window

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

Displaying two images in the same window

Yoav Rubin-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Displaying two images in the same window

Duane and Julie
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