-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
1.3.1
-
generic
-
generic
The method copyData(WritableRaster) of BufferedImage directly copies the data into the provided Raster no matter the bounds of this raster is in the image bounds or not. In the case that part of the raster is out of the image bounds, only the intersection part should be copied. Otherwise, ArrayOutOfBoundsException is thrown.
This is found from the sample code of one JAI user. A modified version in the attachment demonstrates this problem.
This is found from the sample code of one JAI user. A modified version in the attachment demonstrates this problem.