Java Icon getChatIconImage()

Here you can find the source of getChatIconImage()

Description

get Chat Icon Image

License

Open Source License

Declaration

public static Image getChatIconImage() 

Method Source Code


//package com.java2s;
import java.awt.Image;
import javax.swing.ImageIcon;

public class Main {
    public static Image getChatIconImage() {
        Image image = new ImageIcon(
                Thread.currentThread().getContextClassLoader().getResource("images/logo-24.png")).getImage();
        return image;
    }/*from  w  w w  . ja  v  a2s  .com*/

    public static Image getChatIconImage(int width, int height) {
        return getChatIconImage().getScaledInstance(width, height, Image.SCALE_AREA_AVERAGING);
    }
}

Related

  1. createColorIcon(final int width, final int height, final Color color)
  2. createHistImage(JComponent c, Icon hd, File dir, Color bgColor, String fname)
  3. createRotatedImage(Component c, Icon icon, double rotatedAngle)
  4. extractIconImage(Component component, Icon icon)
  5. genImageResource(Class cls, String icon)
  6. makeIcon(final Class baseClass, final Class rootClass, final String imageFile)
  7. scaleIcon(Image iconImage, int size)
  8. toImage(Icon icon)
  9. toImages(List icons)