Examples of ExposureFilter


Examples of com.dotcms.repackage.com.dotmarketing.jhlabs.image.ExposureFilter

   
    File resultFile = getResultsFile(file, parameters);



    ExposureFilter ef = new ExposureFilter();
    ef.setExposure(f);

    if (!overwrite(resultFile, parameters)) {
      return resultFile;
    }

    try {
      BufferedImage src = ImageIO.read(file);

      BufferedImage dst = ef.filter(src, null);
      ImageIO.write(dst, "png", resultFile);
    } catch (IOException e) {
      Logger.error(this.getClass(), e.getMessage());
    }
View Full Code Here

Examples of com.jhlabs.image.ExposureFilter

  }

  // 瀑光度
  public static BufferedImage ExposureFilter(BufferedImage src, float exposure) {
    BufferedImage desc = null;
    ExposureFilter filter = new ExposureFilter();
    filter.setExposure(exposure);

    desc = filter.filter(src, null);
    filter = null;
    return desc;

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.