[Webkit-unassigned] [Bug 21575] Cairo's ImageBuffer::getImageData() does not handle alpha=0 case correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 13 12:31:39 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21575





------- Comment #2 from vbs85 at gmx.de  2008-10-13 12:31 PDT -------
Need to respect premultiplied colors:

                destRows[basex] = ((*pixel & 0x00ff0000) >> 16) * 255 / alpha;
                destRows[basex + 1] = ((*pixel & 0x0000ff00) >> 8) * 255 /
alpha;
                destRows[basex + 2] = ((*pixel & 0x000000ff)) * 255 / alpha;
                destRows[basex + 3] = alpha;

(the same on putImageData)


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list