mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-03 11:35:29 -04:00
Image now properly copied onto the destination, rather than the other way around...
This commit is contained in:
parent
a1de9ff448
commit
2955054a72
@ -358,8 +358,9 @@ public final class ImageUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a copy of the given image. The image will have the same
|
||||
* color model and raster type, but will not share image (pixel) data.
|
||||
* Creates a deep copy of the given image. The image will have the same
|
||||
* color model and raster type, but will not share image (pixel) data
|
||||
* with the input image.
|
||||
*
|
||||
* @param pImage the image to clone.
|
||||
*
|
||||
@ -378,7 +379,7 @@ public final class ImageUtil {
|
||||
cm.createCompatibleWritableRaster(pImage.getWidth(), pImage.getHeight()),
|
||||
cm.isAlphaPremultiplied(), null);
|
||||
|
||||
drawOnto(pImage, img);
|
||||
drawOnto(img, pImage);
|
||||
|
||||
return img;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user