开发者

How to crop gtk pixbufs

开发者 https://www.devze.com 2023-01-07 10:52 出处:网络
I\'ve got a gtk - pixbuf out of an svg and want to crop this to a specific size at specific coo开发者_JAVA技巧rdinates.

I've got a gtk - pixbuf out of an svg and want to crop this to a specific size at specific coo开发者_JAVA技巧rdinates.

Anyone has an easy possible solution for that ?


solved it in a different way:

simply created a subpixbuf with the coodinates:

cropped_buffer=pixbuf.subpixbuf(x,y,width,height)


svg has a viewbox attribute. You could use that one.

0

精彩评论

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