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

macros.FloodFillTool.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
   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