macros.FloodFillTool.txt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ij Show documentation
Show all versions of ij Show documentation
ImageJ is an open source Java image processing program inspired by NIH Image for the Macintosh.
var floodType = call("ij.Prefs.get", "tool.flood", "8-connected");
var alt = 8;
macro "Flood Fill Tool -C037B21P085373b75d0L4d1aL3135L4050L6166D57D77D68D09D94Da7C123Da5La9abLb6bc" {
setupUndo();
getCursorLoc(x, y, z, flags);
if (flags&alt!=0)
setColor(getValue("color.background"));
floodFill(x, y, floodType);
}
macro 'Flood Fill Tool Options...' {
Dialog.create("Flood Fill Tool");
Dialog.addChoice("Flood Type:", newArray("4-connected", "8-connected"), floodType);
Dialog.show();
floodType = Dialog.getChoice();
call("ij.Prefs.set", "tool.flood", floodType);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy