Java BufferedImage Load loadImageFromFile(String filename)

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

Description

load Image From File

License

Open Source License

Declaration

public static Image loadImageFromFile(String filename) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.imageio.ImageIO;

import java.awt.Image;

import java.io.File;
import java.io.IOException;

public class Main {
    public static Image loadImageFromFile(String filename) throws IOException {
        return ImageIO.read(new File(filename));
    }//  www .ja  v  a  2  s  . co m
}

Related

  1. loadImageData(String name)
  2. loadImageFromBytes(byte[] bytes)
  3. loadImageFromFile(File f)
  4. loadImageFromFile(File file)
  5. loadImageFromFile(String fileName)
  6. loadImageFromFile(String filepath)
  7. loadImageFromFile_ORIG(String imgName)
  8. loadImagefromJar(Object refObj, String fileName)
  9. loadImageFromURL(String imageURL, Component component)