JDK-4380232 : Provide remaining Porter-Duff compositing rules in AlphaComposite
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2000-10-17
  • Updated: 2000-11-21
  • Resolved: 2000-11-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
1.4.0 betaFixed
Description
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)

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta FIXED IN: merlin-beta INTEGRATED IN: merlin-beta
2004-06-14

EVALUATION Implemented the remaining compositing rules.
2004-06-11

SUGGESTED FIX Add the necessary constants to the AlphaComposite class for the remaining 4 rules and beef up the implementation to handle them.
2004-06-11