if (w <= 0 || h <= 0)
{
return;
}
PaintContext pc = paint.createContext(null, rec, rec, transform, hints);
Raster r = pc.getRaster(x, y, w, h);
WritableRaster wr;
if (r instanceof WritableRaster)
{
wr = (WritableRaster) r;
}
else
{
wr = r.createCompatibleWritableRaster();
wr.setRect(r);
}
Surface srcSurf = new ImageSurface(pc.getColorModel(), wr);
blitter.blit(0, 0, srcSurf, x, y, dstSurf, w, h, composite, null, mra);
srcSurf.dispose();