Transparent pixels dont get filtered correctly
Posted: Sat Jul 09, 2016 7:58 am
Transparent pixels dont get filtered correctly if adjanced to none transparent pixels.
Attached I have a picture of a white circle with red background (background 100% transparent).
If you view this at 100% you correctly get a white circle.
If you view it scaled to less than 100% the circle edges start bleeding red, which is wrong.
This is because the filter doesnt weigh pixels by their transparency-value, so a red pixel with 100% transparency and a white pixel with no transparency become a light red pixel with 50% transparency instead of a white pixel with 50% transparency.
ADDENDUM:
- for viewing pictures the bug only happens with high quality zoom enabled
- for resizing an image the bug always happens (not with nearest pixel mode)
Attached I have a picture of a white circle with red background (background 100% transparent).
If you view this at 100% you correctly get a white circle.
If you view it scaled to less than 100% the circle edges start bleeding red, which is wrong.
This is because the filter doesnt weigh pixels by their transparency-value, so a red pixel with 100% transparency and a white pixel with no transparency become a light red pixel with 50% transparency instead of a white pixel with 50% transparency.
ADDENDUM:
- for viewing pictures the bug only happens with high quality zoom enabled
- for resizing an image the bug always happens (not with nearest pixel mode)