GimpImage-scale

GimpImage-scale

Synopsis

void                gimp_image_scale                    (GimpImage *image,
                                                         gint new_width,
                                                         gint new_height,
                                                         GimpInterpolationType interpolation_type,
                                                         GimpProgress *progress);
GimpImageScaleCheckType gimp_image_scale_check          (const GimpImage *image,
                                                         gint new_width,
                                                         gint new_height,
                                                         gint64 max_memsize,
                                                         gint64 *new_memsize);

Description

Details

gimp_image_scale ()

void                gimp_image_scale                    (GimpImage *image,
                                                         gint new_width,
                                                         gint new_height,
                                                         GimpInterpolationType interpolation_type,
                                                         GimpProgress *progress);


gimp_image_scale_check ()

GimpImageScaleCheckType gimp_image_scale_check          (const GimpImage *image,
                                                         gint new_width,
                                                         gint new_height,
                                                         gint64 max_memsize,
                                                         gint64 *new_memsize);

Inventory the layer list in image and check that it may be scaled to new_height and new_width without problems.

image :

A GimpImage.

new_width :

The new width.

new_height :

The new height.

max_memsize :

The maximum new memory size.

new_memsize :

The new memory size.

Returns :

GIMP_IMAGE_SCALE_OK if scaling the image will shrink none of its layers completely away, and the new image size is smaller than max_memsize. GIMP_IMAGE_SCALE_TOO_SMALL if scaling would remove some existing layers. GIMP_IMAGE_SCALE_TOO_BIG if the new image size would exceed the maximum specified in the preferences.