Package com.dotcms.repackage.com.dotmarketing.jhlabs.image

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


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


    HSBAdjustFilter filter = new HSBAdjustFilter();
    filter.setBFactor(b.floatValue());
    filter.setHFactor(h.floatValue());
    filter.setSFactor(s.floatValue());
   
   
    try {
      BufferedImage src = ImageIO.read(file);

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

TOP

Related Classes of com.dotcms.repackage.com.dotmarketing.jhlabs.image.HSBAdjustFilter

Copyright © 2018 www.massapicom. 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.