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

[Canvas] Use of PixelWriter to write single pixels leaves the graphics in "SRC" mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8
    • javafx
    • None

      The code to handle single pixel writes in the PixelWriter on a GraphicsContext accidentally leaves the internal graphics object in a SRC composite mode for subsequent rendering even if that rendering is supposed to be SRC_OVER.

      The attached test case should draw 2 identical diagrams. The figure on the right blends the blue over the red, but in the one on the right the blue rectangle overwrites the red one.

            flar Jim Graham
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: