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.
精彩评论