Java Image getChatLogoImage(int width, int height)

Here you can find the source of getChatLogoImage(int width, int height)

Description

get Chat Logo Image

License

Open Source License

Declaration

public static Image getChatLogoImage(int width, int height) 

Method Source Code


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

public class Main {
    public static Image getChatLogoImage() {
        Image image = new ImageIcon(
                Thread.currentThread().getContextClassLoader().getResource("images/logo-24.png")).getImage();
        return image;
    }/*  ww w  . j av  a2 s  .  c o m*/

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

Related

  1. displayImage(Image img, String mesg, int locx, int locy, int sizex, int sizey)
  2. divideImage(Object obj, int rows, int cols)
  3. ensureImageLoaded(Image img)
  4. findImagefromClasspath(Class relToThisClass, String relImageName)
  5. generateImageVisualizationPanel(String path, int width, int height, int scaling)
  6. getChatLogoImageBig(int width, int height)
  7. getColoredImage(Color color, int width, int height)
  8. getDisabledImage(Image image)
  9. getEingabeImage(int x, int y)