Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 GIMP 编写脚本,但我一直坚持这一点。
我想从用户选择中取消选择透明像素。
GIMP 不采用 RGBA 值,所以我不能只写:
(gimp-image-select-color inImage CHANNEL-OP-SUBTRACT inLayer '(0 0 0 0))
有一个错误,因为颜色列表不能有 4 个元素。
如何从当前选择中减去 Alpha 通道透明度?可以使用 GIMP UI(在按颜色工具选择中选择减法开关)。我想用脚本达到同样的效果。
将您的选择与由非透明像素组成的选择相交,换句话说:
(或相反亦然)