Top | ![]() |
![]() |
![]() |
![]() |
gboolean | gimp_image_resize () |
gboolean | gimp_image_resize_to_layers () |
gboolean | gimp_image_scale () |
gboolean | gimp_image_crop () |
gboolean | gimp_image_flip () |
gboolean | gimp_image_rotate () |
gboolean gimp_image_resize (GimpImage *image
,gint new_width
,gint new_height
,gint offx
,gint offy
);
Resize the image to the specified extents.
This procedure resizes the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels within the image are resized according to the specified parameters; this includes the image selection mask. All layers within the image are repositioned according to the specified offsets.
gboolean
gimp_image_resize_to_layers (GimpImage *image
);
Resize the image to fit all layers.
This procedure resizes the image to the bounding box of all layers of the image. All channels within the image are resized to the new size; this includes the image selection mask. All layers within the image are repositioned to the new image area.
Since: 2.2
gboolean gimp_image_scale (GimpImage *image
,gint new_width
,gint new_height
);
Scale the image using the default interpolation method.
This procedure scales the image so that its new width and height are
equal to the supplied parameters. All layers and channels within the
image are scaled according to the specified parameters; this
includes the image selection mask. The interpolation method used can
be set with gimp_context_set_interpolation()
.
gboolean gimp_image_crop (GimpImage *image
,gint new_width
,gint new_height
,gint offx
,gint offy
);
Crop the image to the specified extents.
This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned.
gboolean gimp_image_flip (GimpImage *image
,GimpOrientationType flip_type
);
Flips the image horizontally or vertically.
This procedure flips (mirrors) the image.
gboolean gimp_image_rotate (GimpImage *image
,GimpRotationType rotate_type
);
Rotates the image by the specified degrees.
This procedure rotates the image.