Java BufferedImage Create getBufferedImage(File file)

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

Description

get Buffered Image

License

Open Source License

Declaration

public static BufferedImage getBufferedImage(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 getBufferedImage(File file) {
        try {/*  w  w  w. j  ava 2s  .c  o m*/
            return ImageIO.read(file);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}

Related

  1. convertToBufferedImage(BufferedImage image, int imageType)
  2. getBufferedImage(byte[] imgStr)
  3. getBufferedImage(Component comp, BufferedImage image)
  4. getBufferedImage(String imageFile, Component c)
  5. getBufferedImage(String imagePath)
  6. getBufferedImageAsType(int type, BufferedImage image, int sizeX, int sizeY)
  7. getBufferedImageBytes(BufferedImage bufferedImage)