Clipping and alpha masks for objects
Posted: Wed Apr 03, 2019 8:20 pm
When adding a widget it's currently not possible to hide a specific part of it explicitly. Sometimes it would be handy to be able to define a "clipping mask" to define what's shown and what's hidden. Besides clipping - which is sort of a hard alpha mask - it would also be nice to have a "soft" alpha mask (= linear transparency mask) with 8/16/24 bit resolution which allows blending an object very gently against its background.
Clipping and alpha masks could be defined using a vector object like a polygon which is suggested here:
viewtopic.php?f=5&t=81
In case of the alpha mask it could also be loaded from a PNG or even a JPG / JPEG file where grayscale values are interpreted as alpha values.
Not only widgets could have these masks but all elements / objects could use them (optionally) to add clipping or linear transparency to them.
Hope you like it
Clipping and alpha masks could be defined using a vector object like a polygon which is suggested here:
viewtopic.php?f=5&t=81
In case of the alpha mask it could also be loaded from a PNG or even a JPG / JPEG file where grayscale values are interpreted as alpha values.
Not only widgets could have these masks but all elements / objects could use them (optionally) to add clipping or linear transparency to them.
Hope you like it