Attach a JPG in a dialog

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

Attach a JPG in a dialog

Xavier Colomé
Hello, I'm wondering if is it possible to attach an image in a dialog box,
for example to show an explanatory instructions for the user.

Is is possible?

thank you so much

Best regards.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Attach a JPG in a dialog

Rasband, Wayne (NIH/NIMH) [E]
On Dec 22, 2014, at 7:24 AM, Xavier Colomé <[hidden email]> wrote:
>
> Hello, I'm wondering if is it possible to attach an image in a dialog box,
> for example to show an explanatory instructions for the user.
>
> Is is possible?
>
> thank you so much

Upgrade to the latest ImageJ daily build (1.49o6) and you can add an image to a dialog box using the new addImage() method. Here is a JavaScript example:

  img = IJ.openImage("http://imagej.nih.gov/ij/images/clown.jpg");
  gd = new GenericDialog("Dialog with Image");
  gd.addImage(img);
  gd.showDialog();

-wayne





--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html