Here you can find the source of isValidImg(ImageIcon img)
Parameter | Description |
---|---|
img | a parameter |
public static boolean isValidImg(ImageIcon img)
//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); } }