Method: Magick::Image#excerpt

Defined in:
ext/RMagick/rmimage.c

#excerpt(x, y, width, height) ⇒ Object

Lightweight crop.

Ruby usage:

- @verbatim Image#excerpt(x, y, width, height) @endverbatim

Parameters:

  • self

    this object

  • x

    the x position for the start of the rectangle

  • y

    the y position for the start of the rectangle

  • width

    the width of the rectancle

  • height

    the height of the rectangle

Returns:

  • self if bang, otherwise a new image

See Also:

  • #excerpt
  • Image_excerpt_bang
  • Image_crop
  • Image_crop_bang

5740
5741
5742
5743
5744
5745
# File 'ext/RMagick/rmimage.c', line 5740

VALUE
Image_excerpt(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
{
    (void) rm_check_destroyed(self);
    return excerpt(False, self, x, y, width, height);
}