Views
323
Replies
2
Status
Closed
Hi, I’m currently programming a filter plugin, and I’m kinda wondering what users would expect to happen with transparent pixels.
A problem arises when filtering layers that are not entirely filled (i.e. contain transparent parts).
Since pictures usually say more than a thousand words, please see what I mean here:
Before filtering:
http://img182.imageshack.us/img182/4119/layers11rq.png
After filtering:
http://img182.imageshack.us/img182/6780/layers28ho.png
For simplicity, let’s assume my filter just does a simple blur. Should I first "fix" the RGB data of the fully transparent pixels and then apply my filter normally? Cause if I don’t, by averaging pixels I might end up blurring white pixels through visible areas, while the white has actually no meaning at all.
Does anyone know how filters deal with this in general?
A problem arises when filtering layers that are not entirely filled (i.e. contain transparent parts).
Since pictures usually say more than a thousand words, please see what I mean here:
Before filtering:
http://img182.imageshack.us/img182/4119/layers11rq.png
After filtering:
http://img182.imageshack.us/img182/6780/layers28ho.png
For simplicity, let’s assume my filter just does a simple blur. Should I first "fix" the RGB data of the fully transparent pixels and then apply my filter normally? Cause if I don’t, by averaging pixels I might end up blurring white pixels through visible areas, while the white has actually no meaning at all.
Does anyone know how filters deal with this in general?
Related Tags
How to Improve Photoshop Performance
Learn how to optimize Photoshop for maximum speed, troubleshoot common issues, and keep your projects organized so that you can work faster than ever before!