Method
CdkPixbufPixbufscale_simple
Declaration [src]
CdkPixbuf*
cdk_pixbuf_scale_simple (
const CdkPixbuf* src,
int dest_width,
int dest_height,
CdkInterpType interp_type
)
Description [src]
Create a new pixbuf containing a copy of src scaled to
dest_width x dest_height.
This function leaves src unaffected.
The interp_type should be CDK_INTERP_NEAREST if you want maximum
speed (but when scaling down CDK_INTERP_NEAREST is usually unusably
ugly). The default interp_type should be CDK_INTERP_BILINEAR which
offers reasonable quality and speed.
You can scale a sub-portion of src by creating a sub-pixbuf
pointing into src; see cdk_pixbuf_new_subpixbuf().
If dest_width and dest_height are equal to the width and height of
src, this function will return an unscaled copy of src.
For more complicated scaling/alpha blending see cdk_pixbuf_scale()
and cdk_pixbuf_composite().
Parameters
dest_width-
Type:
intThe width of destination image.
dest_height-
Type:
intThe height of destination image.
interp_type-
Type:
CdkInterpTypeThe interpolation type for the transformation.
Return value
Type: CdkPixbuf
The new pixbuf.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |
The return value can be NULL. |