Java BufferedImage Load loadImage(File file)

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

Description

load Image

License

Open Source License

Declaration

public static BufferedImage loadImage(File file) 

Method Source Code


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

import java.awt.image.BufferedImage;
import java.io.File;

import java.io.IOException;

import javax.imageio.ImageIO;

public class Main {

    public static BufferedImage loadImage(File file) {
        BufferedImage bi = null;/*from  ww w . ja  v  a  2 s  .  co m*/
        try {
            bi = ImageIO.read(file);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return bi;
    }
}

Related

  1. loadImage(byte[] data)
  2. loadImage(ClassLoader classLoader, String path)
  3. loadImage(File file)
  4. loadImage(File file)
  5. loadImage(File file)
  6. loadImage(File pFile)
  7. loadImage(final byte[] imageData)
  8. loadImage(final File imgFile)
  9. loadImage(final File refDirectory, final String imageFileName)