Java Image Load loadImage(File original)

Here you can find the source of loadImage(File original)

Description

load Image

License

LGPL

Declaration

private static Image loadImage(File original) throws IOException 

Method Source Code

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

import java.awt.Image;

import java.io.File;
import java.io.IOException;
import javax.swing.ImageIcon;

public class Main {
    private static Image loadImage(File original) throws IOException {
        ImageIcon ii = new ImageIcon(original.getCanonicalPath());
        Image i = ii.getImage();//from w ww. ja v  a 2 s.c  om

        return i;
    }
}

Related

  1. getImage(URL url)
  2. getImageFromClassResource(Class cls, String resource)
  3. getImageFromFile(String fileName)
  4. getImageFromSource(JPanel source, Dimension dim)
  5. getLocal(String imagePath)
  6. loadImage(final String src)
  7. loadImage(InputStream s)
  8. loadImage(Object parent, String pathToImage)
  9. loadImage(String filename)