/** * Returns the BufferedImage that will be used as the representation of the pixel data. Subclasses * can override this method to return platform specific subclasses of BufferedImage that may or * may not be accelerated. * * <p>It is subclass' responsibility to propagate acceleration priority to the newly created * image. */ protected BufferedImage createImage( ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied, Hashtable properties) { BufferedImage bi = new BufferedImage(cm, raster, isRasterPremultiplied, null); bi.setAccelerationPriority(image.getAccelerationPriority()); return bi; }