All Downloads are FREE. Search and download functionalities are using the official Maven repository.

macros.TimeStamp.ijm Maven / Gradle / Ivy

Go to download

ImageJ is an open source Java image processing program inspired by NIH Image for the Macintosh.

There is a newer version: 1.54m
Show newest version
x=20; y=30; size=18;
interval=1; //seconds
i = floor(i*interval); // 'i' is the image index
setFont("SansSerif", size, "antialiased");
setColor("white");
s = ""+pad(floor(i/3600))+":"+pad(floor((i/60)%60))+":"+pad(i%60);
drawString(s, x, y);
function pad(n) {
  str = toString(n);
  if (lengthOf(str)==1) str="0"+str;
  return str;
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy