You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given this icon, which has a transparent background:
(it only seems white on top of github's white background)
And this image:
When I compose the icon over the image, I would expect to see this:
But instead I see this:
(note, again, that the rectangle surrounding the icon is transparent; you are seeing through the resulting image into the page's background)
It seems that the pixels from the incoming (second / icon) image are being taken "absolutely", replacing the pixels on the target (first / picture) image.
Each pixel should be combined not only taking into account the alpha parameter given to the composite object, but the transparency of each individual pixel.
For a reference implementation, compare with gimp (which was used to generate the "expected" result)
The text was updated successfully, but these errors were encountered:
I am of the opinion that this should be the behaviour for the NormalComposite. But I'll respect your design decisions and close this issue, since the functionality is there after all. Thanks!
Given this icon, which has a transparent background:
(it only seems white on top of github's white background)
And this image:
When I compose the icon over the image, I would expect to see this:
But instead I see this:
(note, again, that the rectangle surrounding the icon is transparent; you are seeing through the resulting image into the page's background)
This is the code I used:
It seems that the pixels from the incoming (second / icon) image are being taken "absolutely", replacing the pixels on the target (first / picture) image.
Each pixel should be combined not only taking into account the alpha parameter given to the composite object, but the transparency of each individual pixel.
For a reference implementation, compare with gimp (which was used to generate the "expected" result)
The text was updated successfully, but these errors were encountered: