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

setPixels should round the provided double value instead of casting to integer

XMLWordPrintable

    • 2d
    • generic
    • generic

      For a WritableRaster with one of the integer data types, the method setPixels with a double array parameter directly cast the double value to an integer/short/byte. This may too much accuracy. Suggest to round the value.

            campbell Christopher Campbell (Inactive)
            qgao Qinghuai Gao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: