Display a picture on Dialog box

Hi all,
Does anyone knows how to create a macro for showing a picture on dialog box?

Thank so much

I think not directly in the macro language but you can call a scripting language from within the macro, example:

javascript="img = IJ.openImage(\"https://imagej.nih.gov/ij/images/clown.jpg\");\n" + 
			"    ip = img.getProcessor();\n" + 
			"    ip.snapshot();\n" + 
			"    listener = new DialogListener() {\n" + 
			"        dialogItemChanged : function(gd, event) {\n" + 
			"            gamma = gd.getNextNumber();\n" + 
			"            ip.reset();\n" + 
			"            ip.gamma(gamma);\n" + 
			"            img.setProcessor(ip);\n" + 
			"            gd.repaint();\n" + 
			"            return true;\n" + 
			"        }\n" + 
			"    };\n" + 
			"    gd = new GenericDialog(\"Gamma Adjuster\");\n" + 
			"    gd.addImage(img);\n" + 
			"    gd.addSlider(\"Gamma:\", 0.05, 5.0, 1);\n" + 
			"    gd.addDialogListener(listener);\n" + 
			"    gd.showDialog();";
   
eval("script",javascript);

Of course you could use any other supported scripting language, see:

https://imagej.nih.gov/ij/developer/macro/functions.html#E

Thanks!
But I don´t know why it didn´t work. ReferenceError: “importPackage” is not defined in at line number 1

Which distribution are you using? I used ImageJ. It might be that on other distribution (e.g. FIJI) javascript imports have to be declared at the beginning (in ImageJ they are automatically prepended).

Wow! it worked using imageJ.
Thanks.