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 ImageIcon
    static javax.swing.ImageIcon getscaledImage​(javax.swing.ImageIcon icon, int w, int h)
    Retourne un object ImageIcon redimensionné

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 ressources
      path - 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 à redimensionner
      w - largeur
      h - hauteur
      Returns:
      Retourne l'object ImageIcon redimensionné