Package com.googlecode.pngtastic.core

Examples of com.googlecode.pngtastic.core.PngOptimizer.optimize()


     public void compressPNG(String inputFilePath, String outputFilePath, String fileType) {
             try
      {
       PngOptimizer optimizer = new PngOptimizer();
        PngImage image = new PngImage(inputFilePath);
        optimizer.optimize(image, outputFilePath, false,9);
      }catch (IOException e)
      {
        e.printStackTrace();
      }       
     }
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.