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. In-place form of #resize.

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:



12228
12229
12230
12231
12232
12233
# File 'ext/RMagick/rmimage.cpp', line 12228

VALUE
Image_resize_bang(int argc, VALUE *argv, VALUE self)
{
    rm_check_frozen(self);
    return resize(True, argc, argv, self);
}