United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5094232 RFE: New compositing modes for java2d (add, sub, div, mult)
JDK-5094232 : RFE: New compositing modes for java2d (add, sub, div, mult)

Details
Type:
Enhancement
Submit Date:
2004-08-30
Status:
Open
Updated Date:
2013-08-13
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
windows_xp
Sub-Component:
2d
CPU:
x86
Priority:
P4
Resolution:
Unresolved
Affected Versions:
1.4.2
Targeted Versions:
5.0-pool

Related Reports
Relates:

Sub Tasks

Description
Name: jl125535			Date: 08/30/2004


A DESCRIPTION OF THE REQUEST :
Java2D does not include compositing modes that are now common:
- Add
- Subtract
- Divide
- Multiply


JUSTIFICATION :
The 12 Duff-Porter are nice, but not enough when going gaming.(those compositing modes are more than necessary in that field, and generally miss anyway).
While we can, of course, do those ourselves, we are tied to make them software. Once done by hand, they make any hardware acceleration efforts useless.


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Another class the implements the four modes.

CUSTOMER SUBMITTED WORKAROUND :
none if we want to keep accelerated pipeline (gl, dx, ddraw, ... ).
(Incident Review ID: 301368) 
======================================================================

                                    

Comments
EVALUATION

See 6541868 for an updated evaluation that discusses how the
hardware acceleration story impacts our decision to deliver (or not)
these extended compositing modes in Java2D.
                                     
2009-02-13
EVALUATION

This is something we should investigate in the Dolphin timeframe, and should not
necessarily limit ourselves to the four modes mentioned above (things like
average, darken, lighten, color burn/dodge are pretty common in photo editing
software and libraries these days).

We could accelerate most of these modes fairly easily in the OGL/D3D pipelines,
leveraging shaders where necessary.
                                     
2006-02-15



Hardware and Software, Engineered to Work Together