コード例 #1
0
  public static void ioOverlayBlur() {
    boolean selected =
        Automate.selectInputAndOutputDir(
            false, "Overlay Blur - select the input and output folders");
    if (!selected) {
      return;
    }

    CompAction ca =
        comp -> {
          comp.addNewLayerFromComposite("Overlay Blur");
          comp.getActiveLayer()
              .setBlendingMode(BlendingMode.OVERLAY, UpdateGUI.YES, AddToHistory.YES, true);
          JHGaussianBlur blur = new JHGaussianBlur();
          blur.setRadius(5);
          blur.execute(OP_WITHOUT_DIALOG);
        };
    Automate.processEachFile(ca, false, "Overlay Blur Progress");
  }