Java ImageIcon isValidImg(ImageIcon img)

Here you can find the source of isValidImg(ImageIcon img)

Description

Verifica que la imagen tenga las dimensiones de 32x32

License

Open Source License

Parameter

Parameter Description
img a parameter

Declaration

public static boolean isValidImg(ImageIcon img) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.ImageIcon;

public class Main {
    /**/*from w w w. j  a  v  a2  s  . c om*/
     * Verifica que la imagen tenga las dimensiones de 32x32
     *
     * @param img
     * 
     * @return
     */
    public static boolean isValidImg(ImageIcon img) {
        return (img.getIconWidth() == 32 && img.getIconHeight() == 32);
    }
}

Related

  1. iconDefaultSize(ImageIcon imag)
  2. imageFlip(int w, int h, ImageIcon... icons)
  3. imageToBytes(ImageIcon icon)
  4. imageWithBackground(ImageIcon icon, Color colorBg)
  5. initImageIcon(Class cl)
  6. loadJavaInternal(ImageIcon r, Dimension d, boolean noStretch)
  7. makeDisabledImage(ImageIcon in)
  8. paintWithWatermarkHelper(JComponent component, ImageIcon watermark, Graphics g)
  9. parseImageIcon(Image image)