Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gdkPixbufScaleSimple

gdkPixbufScaleSimple


Description

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_NEAREST if you want maximum speed (but when scaling down GDK_INTERP_NEAREST is usually unusably ugly). The default interp.type should be GDK_INTERP_BILINEAR which offers reasonable quality and speed.

Usage

gdkPixbufScaleSimple(object, dest.width, dest.height, interp.type)

Arguments

object

a GdkPixbuf

dest.width

the width of destination image

dest.height

the height of destination image

interp.type

the interpolation type for the transformation.

Details

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.

Value

[GdkPixbuf] the new GdkPixbuf, or NULL if not enough memory could be allocated for it.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.