Here you can find the source of loadImage(String image)
Parameter | Description |
---|---|
image | a parameter |
Parameter | Description |
---|---|
Exception | an exception |
public static BufferedImage loadImage(String image) throws Exception
//package com.java2s; /*/*from ww w . j a v a 2 s .c om*/ * leola-live * see license.txt */ import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class Main { /** * Loads an image * * @param image * @return * @throws Exception */ public static BufferedImage loadImage(String image) throws Exception { return ImageIO.read(new File(image)); } }