Method: Magick::Image#resize

Defined in:
ext/RMagick/rmimage.cpp

#resize(scale) ⇒ Magick::Image #resize(cols, rows, filter, blur) ⇒ Magick::Image

Scale an image to the desired dimensions using the specified filter and blur factor.

Overloads:

  • #resize(scale) ⇒ Magick::Image

    Parameters:

    • scale (Numeric)

      You can use this argument instead of specifying the desired width and height. The percentage size change. For example, 1.25 makes the new image 125% of the size of the receiver. The scale factor 0.5 makes the new image 50% of the size of the receiver.

  • #resize(cols, rows, filter, blur) ⇒ Magick::Image

    Parameters:

    • cols (Numeric)

      The desired width

    • rows (Numeric)

      The desired height.

    • filter (Magick::FilterType)

      the filter type

    • blur (Numeric)

      the blur size

Returns:

See Also:



12202
12203
12204
12205
12206
12207
# File 'ext/RMagick/rmimage.cpp', line 12202

VALUE
Image_resize(int argc, VALUE *argv, VALUE self)
{
    rm_check_destroyed(self);
    return resize(False, argc, argv, self);
}