Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4698403

Method copyData(WritableRaster) of BufferedImage throws ArrayOutOfBoundsExceptio

XMLWordPrintable

    • 2d
    • 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.

            Unassigned Unassigned
            qgao Qinghuai Gao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: