Package com.agiletec.plugins.jpavatar.aps.system.utils

Examples of com.agiletec.plugins.jpavatar.aps.system.utils.ImageInfo


        String[] args = new String [2];
        args[0] = new Long(avatar.length()).toString();
        args[1] = new Long(this.getImageMaxSize() * 1024).toString();
        this.addFieldError("Avatar", this.getText("jpavatar.avatar.sizeTooBig", args));
      }
      ImageInfo imageInfo = new ImageInfo();
      try {
        FileInputStream fis = new FileInputStream(this.getAvatar());
        imageInfo.setInput(fis);
        if (imageInfo.check()) {
          int width = imageInfo.getWidth();
          int heigth = imageInfo.getHeight();
          if (width != this.getImageWidth() || heigth != this.getImageHeight()) {
            String[] args = new String[4];
            args[0] = new Integer(this.getImageWidth()).toString();
            args[1] = new Integer(this.getImageHeight()).toString();
            args[2] = new Integer(width).toString();
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpavatar.aps.system.utils.ImageInfo

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.