开发者

How to crop gtk pixbufs

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜