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

Provide remaining Porter-Duff compositing rules in AlphaComposite

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.2.0
    • client-libs
    • None
    • 2d
    • beta
    • generic
    • generic

      The java.awt.AlphaComposite class currently supports 8 of the 12 rules
      that Porter and Duff defined in their paper on compositing:

      Clear
      A (Src)
      A over B (SrcOver)
      B over A (DstOver)
      A in B (SrcIn)
      B in A (DstIn)
      A held out by B (SrcOut)
      B held out by A (DstOut)

      The remaining rules that are defined by Porter and Duff but not
      provided by the current implementation are:

      B (Dst)
      A atop B (SrcAtop)
      B atop A (DstAtop)
      A xor B (Xor)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: