Examples of useJPEGForOutput()


Examples of de.innovationgate.utils.ImageScaler.useJPEGForOutput()

      TemporaryFile tempTargetFile = new TemporaryFile(targetFileName, null, WGFactory.getTempDir());
        tempTargetFile.deleteOnEviction(doc.getDatabase().getSessionContext());    
        File targetFile = tempTargetFile.getFile();
         
        ImageScaler scaler = TMLContext.getThreadMainContext().createimagescaler(file);
        scaler.useJPEGForOutput();       
        scaler.setQuality(fCompression.floatValue());
       
        scaler.scaleToSize(Integer.parseInt(width), Integer.parseInt(height), new Boolean(keepRatio).booleanValue());
       
        // Write scaled image to target file
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.