开发者

Is it possible to cut away transparent areas of Gtk-pixbuf?

开发者 https://www.devze.com 2023-01-08 05:10 出处:网络
I am currently using rsvg in Python to separate Svggroups. I got it working so that 开发者_StackOverflow中文版rsvg loads a single group ... alas all the transparent space around that still remains.

I am currently using rsvg in Python to separate Svggroups. I got it working so that 开发者_StackOverflow中文版rsvg loads a single group ... alas all the transparent space around that still remains.

Is there a gtk functionallity to cut away all this space?

Thanks for all the answers!


There's nothing built-in but it's fairly simple to code it (walk over pixels, find the transparent ones). Unfortunately walking over pixels in python is probably slow.

0

精彩评论

暂无评论...
验证码 换一张
取 消