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

Blend produces different images for Swing and Prism toolkits. Especially from mode COLOR_BURN.

XMLWordPrintable

      See attached images:
      EffectsTest-Blend-Swing.png -- blend effects with Swing toolking
      EffectsTest-Blend-Prism.png -- blend effects with Prism toolking
      EffectsTest-Blend-diff.png -- color difference between first two (black color means no difference).

      Note, for COLOR_BURN effect difference is huge.

      Code providing each images is next:

      new Group() {{
                              setBlendMode(blendMode);
                              getContent().add(new Rectangle(20, 20, 60, 60) {{ setFill(Color.rgb(0, 50, 255));}} );
                              getContent().add(new Circle(70, 70, 30) {{ setFill(Color.rgb(255, 150, 0, 0.7f));}} );
                          }}

        1. Effects2Test-BlendCOLOR_BURN.png
          1 kB
          Sergey Grinev
        2. EffectsTest-Blend-diff.png
          23 kB
          Sergey Grinev
        3. EffectsTest-Blend-Prism.png
          21 kB
          Sergey Grinev
        4. EffectsTest-Blend-Swing.png
          21 kB
          Sergey Grinev
        5. j2d-b12.jpg
          49 kB
          Sergey Grinev

            bpb Brian Burkhalter
            sgrinev Sergey Grinev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: