public WritableRaster createCompatibleWritableRaster(int x, int y, int w,
int h) {
WritableRaster raster = createCompatibleWritableRaster(w, h);
return raster.createWritableChild(0, 0, w, h, x, y, null);
}
public WritableRaster createCompatibleWritableRaster(Rectangle rect) {
if (rect == null) {
// awt.28C=Rect is null