java load image

Solutions on MaxInterview for java load image by the best coders in the world

showing results for - "java load image"
Tommaso
21 Sep 2017
1BufferedImage img = null;
2
3try 
4{
5    img = ImageIO.read(new File("C:/ImageTest/pic2.jpg")); // eventually C:\\ImageTest\\pic2.jpg
6} 
7catch (IOException e) 
8{
9    e.printStackTrace();
10}