[OpenJDK 2D-Dev] Handling of premultication in the D3D & OGL pipelines

Vadim Pakhnushev vadim.pakhnushev at oracle.com
Tue Oct 1 06:51:09 UTC 2013


BTW, before you stumble upon XOR XRender bug yourself - I'm currently 
working on it and will send a fix for review shortly.

Thanks,
Vadim

On 01.10.2013 9:52, Clemens Eisserer wrote:
> Hi,
>
> I am currently testing compatibility of the xrender pipeline with
> different composition operations, and I noticed for AlphaComposite.SRC
> the D3D and OGL pipelines store pre-multiplied colors in surfaces
> without an alpha-channel.
>
> For example the following code results in a black rectangle, instead
> of a red one when rendering to a BufferedImage of type INT_RGB:
>
>                  ((Graphics2D) g).setComposite(AlphaComposite.Src);
>                  g.setColor(new Color(255, 0, 0, 2));
>                  g.fillRect(10, 10, 100, 100);
>
> Is this intentional or should it be considered a bug?
>
>
> Thanks, Clemens




More information about the 2d-dev mailing list