Package fr.chsn.hostpingchecker.utils
Class ImageUtil
java.lang.Object
fr.chsn.hostpingchecker.utils.ImageUtil
public class ImageUtil
extends java.lang.Object
Classe de fonctions utilitaires pour la manipulation d'images
- Since:
- 1.6.5
-
Constructor Summary
Constructors Constructor Description ImageUtil()
-
Method Summary
Modifier and Type Method Description static javax.swing.ImageIcon
createImageIcon(java.lang.Object base, java.lang.String path)
Retourne un object ImageIconstatic javax.swing.ImageIcon
getscaledImage(javax.swing.ImageIcon icon, int w, int h)
Retourne un object ImageIcon redimensionné
-
Constructor Details
-
ImageUtil
public ImageUtil()
-
-
Method Details
-
createImageIcon
public static javax.swing.ImageIcon createImageIcon(java.lang.Object base, java.lang.String path)Retourne un object ImageIcon- Parameters:
base
- Classe parente qui gère les ressourcespath
- Chemin du fichier à charger- Returns:
- L'object ImageIcon correspondant, ou null
-
getscaledImage
public static javax.swing.ImageIcon getscaledImage(javax.swing.ImageIcon icon, int w, int h)Retourne un object ImageIcon redimensionné- Parameters:
icon
- ImageIcon à redimensionnerw
- largeurh
- hauteur- Returns:
- Retourne l'object ImageIcon redimensionné
-