Method GTK2.GdkPixbuf()->scale_simple()
- Method
scale_simple
GTK2.GdkPixbuf
scale_simple(int
dest_width
,int
dest_height
,int
|void
interp_type
)- Description
Create a new W(Pixbuf) containing a copy of this W(Pixbuf) scaled to dest_width x dest_height. Leaves this W(Pixbuf) unaffected. intertype should be GDK2.INTERP_NEAREST if you want maximum speed (but when scaling down GDK2.INTERP_NEAREST is usually unusably ugly). The default interp_type should be GDK2.INTERP_BILINEAR which offers reasonable quality and speed. You can scale a sub-portion by create a sub-pixbuf with new_subpixbuf().