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.

18 lines
656 B

3 years ago
  1. var floodType = call("ij.Prefs.get", "tool.flood", "8-connected");
  2. var alt = 8;
  3. macro "Flood Fill Tool -C037B21P085373b75d0L4d1aL3135L4050L6166D57D77D68D09D94Da7C123Da5La9abLb6bc" {
  4. setupUndo();
  5. getCursorLoc(x, y, z, flags);
  6. if (flags&alt!=0)
  7. setColor(getValue("color.background"));
  8. floodFill(x, y, floodType);
  9. }
  10. macro 'Flood Fill Tool Options...' {
  11. Dialog.create("Flood Fill Tool");
  12. Dialog.addChoice("Flood Type:", newArray("4-connected", "8-connected"), floodType);
  13. Dialog.show();
  14. floodType = Dialog.getChoice();
  15. call("ij.Prefs.set", "tool.flood", floodType);
  16. }