I was reading the Java2D (iPlanet painting) article from the Swing Connectio and noticed them using this to load an image that they paint as a panel background:
BufferedImage image = ImageIO.read(“background.jpg”);
imageFill = new ImageFill(image);
Now from what I’ve read here on JG, BufferedImages are the (only?) kind of image that cannot be accelerated. So wouldn’t it have been better for them to do a Toolkit.getImage? Why, in this performance-minded article, would they use a BufferedImage? I think the name’s misleading, as it “sounds” faster than a Image
Thanks!
P.S.> The reason I ask is because it seems nice and tempting to use the ImageIO class to load images, (read methods) but all it can return is BufferedImages, and I don’t want to forgo the (automatic) images that are accelerated (when available).