Timeline for Is this converting from or to premultiplied alpha?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 30, 2016 at 17:17 | vote | accept | jzx | ||
Jan 30, 2016 at 17:16 | history | edited | jzx | CC BY-SA 3.0 |
Added missing parentheses.
|
Jan 30, 2016 at 10:37 | comment | added | Pieter Geerkens |
Note that to avoid precision loss, and properly take advantage of the structure discovered by OP, the original operation should probably be: var r = (byte) ( (color.R*divAlpha + 0x80) >> 8);
|
|
Jan 30, 2016 at 10:12 | history | edited | Pieter Geerkens | CC BY-SA 3.0 |
added 229 characters in body
|
Jan 30, 2016 at 10:04 | history | answered | Pieter Geerkens | CC BY-SA 3.0 |