Skip to content

Commit

Permalink
Update BufferedImageCustom.java
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevfullstack authored Feb 16, 2020
1 parent d10d5a0 commit 91c4782
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/simplejavacalculator/BufferedImageCustom.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ public Image imageReturn()
throws IOException {
Image image;

//the image here is not even an image file
//but rather a binary data
InputStream bis = getClass().getResourceAsStream("/icon/icon.png");
BufferedImage bImage2 = ImageIO.read(bis);
image = bImage2;

return image;
}
}
}

0 comments on commit 91c4782

Please sign in to comment.