src = (WritableRaster) srcIn;
}else{
src = srcIn.createCompatibleWritableRaster();
src.setDataElements(0, 0, srcIn);
}
srcSurf = new ImageSurface(srcCM, src);
dstSurf = new ImageSurface(dstCM, dstOut);
int w = Math.min(srcIn.getWidth(), dstOut.getWidth());
int h = Math.min(srcIn.getHeight(), dstOut.getHeight());
NativeImageBlitter.getInstance().blit(0, 0, srcSurf, 0, 0, dstSurf,