Package com.thebuzzmedia.imgscalr.Scalr

Examples of com.thebuzzmedia.imgscalr.Scalr.Mode


      BufferedImage image = ImageIO.read(imageInputStream);
     
      int width = Math.min(image.getWidth(), maxWidth);
      int height = Math.min(image.getHeight(), maxHeight);
     
      Mode mode = Mode.AUTOMATIC;
      if (image.getHeight() > maxHeight) {
        mode = Mode.FIT_TO_HEIGHT;
      }
     
      if (width != image.getWidth() || height != image.getHeight()) {
View Full Code Here


    if(quality > 1)
      quality = quality / 100;
   
    BufferedImage image = javax.imageio.ImageIO.read(input);
   
    Mode mode = Mode.AUTOMATIC;
    if(height <= 0)
    {
      height = width;
      mode = Mode.FIT_TO_WIDTH;
    }
View Full Code Here

TOP

Related Classes of com.thebuzzmedia.imgscalr.Scalr.Mode

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.