Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GdkPixbuf *ResizeImage(GdkPixbuf *pixbuf)
- {
- int orig_width = gdk_pixbuf_get_width(pixbuf);
- int orig_height = gdk_pixbuf_get_height(pixbuf);
- if (orig_width > 640 || orig_height > 480) {
- orig_width = 640;
- orig_height = 480;
- }
- GdkPixbuf *new_pixbuf = gdk_pixbuf_scale_simple(pixbuf, orig_width, orig_height, GDK_INTERP_BILINEAR);
- return new_pixbuf;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement