United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4380232 Provide remaining Porter-Duff compositing rules in AlphaComposite
JDK-4380232 : Provide remaining Porter-Duff compositing rules in AlphaComposite

Details
Type:
Enhancement
Submit Date:
2000-10-17
Status:
Resolved
Updated Date:
2000-11-21
Project Name:
JDK
Resolved Date:
2000-11-21
Component:
client-libs
OS:
generic
Sub-Component:
2d
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:
1.4.0 (beta)

Related Reports

Sub Tasks

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
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
EVALUATION

Implemented the remaining compositing rules.
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin-beta

FIXED IN:
merlin-beta

INTEGRATED IN:
merlin-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together