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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: