resize


Description:

public bool resize (int new_width, int new_height, int offx, int 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.

Parameters:

this

The image.

new_width

New image width.

new_height

New image height.

offx

x offset between upper left corner of old and new images: (new - old).

offy

y offset between upper left corner of old and new images: (new - old).

Returns:

TRUE on success.