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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: