public WritableRaster createCompatibleDestRaster(Raster src) {
    // Here approach is other then in createCompatibleDestImage -
    // destination should include only
    // transformed image, but not (0,0) in source coordinate system

    Rectangle2D newBounds = getBounds2D(src);
    return src.createCompatibleWritableRaster(
        (int) newBounds.getX(),
        (int) newBounds.getY(),
        (int) newBounds.getWidth(),
        (int) newBounds.getHeight());
  }