ImageJ base code to get access to all the classes and their methods to test new Plugins. https://imagejdocu.tudor.lu/howto/plugins/the_imagej_eclipse_howto
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
335 B

2 years ago
  1. x=20; y=30; size=18;
  2. interval=1; //seconds
  3. i = floor(i*interval); // 'i' is the image index
  4. setFont("SansSerif", size, "antialiased");
  5. setColor("white");
  6. s = ""+pad(floor(i/3600))+":"+pad(floor((i/60)%60))+":"+pad(i%60);
  7. drawString(s, x, y);
  8. function pad(n) {
  9. str = toString(n);
  10. if (lengthOf(str)==1) str="0"+str;
  11. return str;
  12. }