-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
1.2beta4
-
generic
-
generic
-
Not verified
The createCompatibleSampleModel() method in both PixelInterleavedSampleModel and BandedSampleModel, when given a width and height that's smaller than the original width and height, does not reset scanlineStride according to the new width and height. This causes error when creating a Raster using the new sampleModel because the buffer size is based on width and height, yet the scanlineStride does not match the buffer size.
A test program showing the bug is attached.
A test program showing the bug is attached.