| gdkPixbufScaleSimple {RGtk2} | R Documentation |
Create a new GdkPixbuf containing a copy of src scaled to
dest.width x dest.height. Leaves src unaffected. interp.type
should be
GDK_INTERP_NEARESTif you want maximum speed (but when scaling down
GDK_INTERP_NEARESTis usually unusably ugly). The default
interp.type should be GDK_INTERP_BILINEARwhich offers reasonable quality and speed.
gdkPixbufScaleSimple(object, dest.width, dest.height, interp.type)
|
|
|
the width of destination image |
|
the height of destination image |
|
the interpolation type for the transformation. |
You can scale a sub-portion of src by creating a sub-pixbuf
pointing into src; see gdkPixbufNewSubpixbuf.
For more complicated scaling/compositing see gdkPixbufScale
and gdkPixbufComposite.
[GdkPixbuf] the new GdkPixbuf, or NULL if not enough memory could be
allocated for it.
Derived by RGtkGen from GTK+ documentation