Java Image Load loadImage(String filename)

Here you can find the source of loadImage(String filename)

Description

load Image

License

LGPL

Declaration

public static Image loadImage(String filename) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.awt.Image;

import javax.swing.ImageIcon;

public class Main {
    public static Image loadImage(String filename) {

        ImageIcon icon = new ImageIcon(filename);

        return icon.getImage();
    }//from   w  w w. j a  v a2 s  .  com
}

Related

  1. getLocal(String imagePath)
  2. loadImage(File original)
  3. loadImage(final String src)
  4. loadImage(InputStream s)
  5. loadImage(Object parent, String pathToImage)
  6. loadImage(String filePath, int imageSize)
  7. loadImage(URL url)
  8. readImage(InputStream inp)
  9. readImageToLabel(String netUrl)