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

macros.Circle_Tool.txt 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
// This example macro tool creates circular selections.
// Press ctrl-i (Macros>Install Macros) to reinstall after
// making changes. Double click on the tool icon (a circle)
// to set the radius of the circle.
// There is more information about macro tools at
//   http://imagej.nih.gov/ij/developer/macro/macros.html#tools
// and many more examples at
//   http://imagej.nih.gov/ij/macros/tools/

var radius = 20;

macro "Circle Tool - C00cO11cc" {
   getCursorLoc(x, y, z, flags);
   makeOval(x-radius, y-radius, radius*2, radius*2);
}

macro "Circle Tool Options" {
   radius = getNumber("Radius: ", radius);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy