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));}} );
                          }}

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

              Created:
              Updated:
              Resolved:
              Imported: