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

Writing BufferedImage Alpha raster blacks out opaque pixels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.2.0, 1.2.1
    • client-libs
    • None
    • 2d
    • merlin
    • unknown, x86
    • generic, solaris_2.5.1

      BufferedImage b = .... // ARGB image
      WritableRaster alpha = b.getAlphaRaster();
      WritableRaster alpha2 = alpha.createCompatibleWritableRaster();
      alpha2.setRect(alpha);
      alpha.setRect(alpha2); // All opaque pixels in b become black after that
      // where image should be unchanged.

            tdv Dmitri Trembovetski (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: