Whenever dealing with the loading and rendering of images in Java, I have previously always used BufferedImage
s to store and manipulate the images in memory.
However, I have recently come across a few different sites that use the Image
class instead of BufferedImage
and this got me wondering - what are the differences?
I'm aware that a BufferedImage
has a larger/optimised toolset, but does come at any cost? If so, when does this cost become noticeable? In which situations would you use an Image
over a BufferedImage
, or vice-versa?