This document contains macros and tools that are automatically installed when ImageJ starts up. It defines macros for the Developer Menu, drawing tools, and a popup menu. It also contains an example of creating a custom command with a keyboard shortcut.
This document contains macros and tools that are automatically installed when ImageJ starts up. It defines macros for the Developer Menu, drawing tools, and a popup menu. It also contains an example of creating a custom command with a keyboard shortcut.
This document contains macros and tools that are automatically installed when ImageJ starts up. It defines macros for the Developer Menu, drawing tools, and a popup menu. It also contains an example of creating a custom command with a keyboard shortcut.
cmd = getArgument(); if (cmd=="Help...") showMessage("About Popup Menu", "To customize this menu, edit the line that starts with\n\"var pmCmds\" in ImageJ/macros/StartupMacros.txt."); else run(cmd); }
macro "-" {} //menu divider
macro "About Startup Macros..." {
path = getDirectory("macros")+"About Startup Macros"; if (!File.exists(path)) exit("\"About Startup Macros\" not found in ImageJ/macros/."); open(path); }
// This example macro demonstrates how to create a
// custom command with a keyboard shortcut. //macro "Save As JPEG... [j]" { // quality = call("ij.plugin.JpegWriter.getQuality"); // quality = getNumber("JPEG quality (0-100):", quality); // run("Input/Output...", "jpeg="+quality); // saveAs("Jpeg"); //}