// This script demonstrates how to display text
// on an image in a non-destructive overlay.

  if (IJ.getVersion()<"1.43i")
     IJ.error("Requires ImageJ 1.43i or later");
  imp = IJ.openImage("http://rsb.info.nih.gov/ij/images/FluorescentCells.zip");
  url = "http://rsbweb.nih.gov/ij/macros/js/TextOverlay2.js";
  text = IJ.openUrlAsString(url);
  font = new Font("SansSerif", Font.PLAIN, 12);
  roi = new TextRoi(10, 10, text, font);
  imp.setRoi(roi);
  imp.show();
  IJ.run(imp, "Create Overlay...", "stroke=yellow fill=#550000ff");
 
