public synchronized java.awt.image.Raster | getRaster(int x, int y, int w, int h)
WritableRaster t = savedTile;
if (t == null || w > t.getWidth() || h > t.getHeight()) {
t = getColorModel().createCompatibleWritableRaster(w, h);
IntegerComponentRaster icr = (IntegerComponentRaster) t;
int[] array = icr.getDataStorage();
Arrays.fill(icr.getDataStorage(), color);
if (w <= 64 && h <= 64) {
savedTile = t;
}
}
return t;
|