Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3
    • Component/s: Graphics
    • Labels:
      None

      Description

      There are some additional blending modes that we can add:
      vivid light
      linear light
      pin light
      hard mix

        Activity

        Hide
        Karl Schaefer added a comment -

        Issue 1441 and Issue 1425: Corrected the incorrect color implementations. Added some units tests that use "good" sought images to perform blending checks. (Would be good to integrate these into the JavaDoc.) Added the missing modes. Some modes still untested, but this is a lot better than before.

        swingx-core/src/main/java/org/jdesktop/swingx/graphics/BlendComposite.java
        swingx-core/src/test/java/org/jdesktop/swingx/graphics/BlendCompositeTest.java
        swingx-core/src/test/java/org/jdesktop/swingx/graphics/BlenderVisualCheck.java
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/add.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/blue-over-horizontal.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/color-burn-hov.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/color-burn-voh.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/color-dodge-hov.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/color-dodge-voh.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/darken.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/difference.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/exclusion.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/green-over-horizontal.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/hard-mix.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/horizontal.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/lighten.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/linear-light-hov.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/linear-light-voh.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/multiply.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/overlay-hov.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/overlay-voh.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/pin-light-hov.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/pin-light-voh.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/red-over-horizontal.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/screen.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/soft-burn-hov.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/soft-burn-voh.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/soft-light-hov.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/soft-light-voh.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/subtract.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/vertical.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/vivid-light-hov.gif
        swingx-core/src/test/resources/org/jdesktop/swingx/graphics/vivid-light-voh.gif

        Committed revision 3998.

        Show
        Karl Schaefer added a comment - Issue 1441 and Issue 1425: Corrected the incorrect color implementations. Added some units tests that use "good" sought images to perform blending checks. (Would be good to integrate these into the JavaDoc.) Added the missing modes. Some modes still untested, but this is a lot better than before. swingx-core/src/main/java/org/jdesktop/swingx/graphics/BlendComposite.java swingx-core/src/test/java/org/jdesktop/swingx/graphics/BlendCompositeTest.java swingx-core/src/test/java/org/jdesktop/swingx/graphics/BlenderVisualCheck.java swingx-core/src/test/resources/org/jdesktop/swingx/graphics swingx-core/src/test/resources/org/jdesktop/swingx/graphics/add.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/blue-over-horizontal.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/color-burn-hov.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/color-burn-voh.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/color-dodge-hov.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/color-dodge-voh.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/darken.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/difference.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/exclusion.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/green-over-horizontal.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/hard-mix.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/horizontal.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/lighten.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/linear-light-hov.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/linear-light-voh.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/multiply.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/overlay-hov.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/overlay-voh.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/pin-light-hov.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/pin-light-voh.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/red-over-horizontal.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/screen.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/soft-burn-hov.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/soft-burn-voh.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/soft-light-hov.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/soft-light-voh.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/subtract.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/vertical.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/vivid-light-hov.gif swingx-core/src/test/resources/org/jdesktop/swingx/graphics/vivid-light-voh.gif Committed revision 3998.

          People

          • Assignee:
            Karl Schaefer
            Reporter:
            Karl Schaefer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: