Method: Magick::Image#shave

Defined in:
ext/RMagick/rmimage.cpp

#shave(width, height) ⇒ Magick::Image

Shave pixels from the image edges, leaving a rectangle of the specified width & height in the center.

Parameters:

  • width (Numeric)

    the width to leave

  • height (Numeric)

    the hight to leave

Returns:

See Also:



13113
13114
13115
13116
13117
13118
# File 'ext/RMagick/rmimage.cpp', line 13113

VALUE
Image_shave(VALUE self, VALUE width, VALUE height)
{
    rm_check_destroyed(self);
    return xform_image(False, self, INT2FIX(0), INT2FIX(0), width, height, GVL_FUNC(ShaveImage));
}