< prev index next >
src/java.desktop/share/classes/sun/java2d/pipe/DrawImage.java
Print this page
*** 428,440 ****
}
}
if (isBgOperation(srcData, bgColor)) {
// We cannot perform bg operations during transform so make
! // an opaque temp image with the appropriate background
// and work from there.
! img = makeBufferedImage(img, bgColor, BufferedImage.TYPE_INT_RGB,
sx1, sy1, sx2, sy2);
// Temp image has appropriate subimage at 0,0 now.
sx2 -= sx1;
sy2 -= sy1;
sx1 = sy1 = 0;
--- 428,440 ----
}
}
if (isBgOperation(srcData, bgColor)) {
// We cannot perform bg operations during transform so make
! // a temp image with the appropriate background
// and work from there.
! img = makeBufferedImage(img, bgColor, BufferedImage.TYPE_INT_ARGB,
sx1, sy1, sx2, sy2);
// Temp image has appropriate subimage at 0,0 now.
sx2 -= sx1;
sy2 -= sy1;
sx1 = sy1 = 0;
< prev index next >