Method: Magick::Image#radial_blur

Defined in:
ext/RMagick/rmimage.cpp

#radial_blur(angle_obj) ⇒ Magick::Image

Applies a radial blur to the image.

Parameters:

  • angle_obj (Numeric)

    the angle (in degrees)

Returns:



11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
# File 'ext/RMagick/rmimage.cpp', line 11277

VALUE
Image_radial_blur(VALUE self, VALUE angle_obj)
{
    Image *image, *new_image;
    ExceptionInfo *exception;
    double angle = NUM2DBL(angle_obj);

    image = rm_check_destroyed(self);
    exception = AcquireExceptionInfo();

    GVL_STRUCT_TYPE(RotationalBlurImage) args = { image, angle, exception };
    void *ret = CALL_FUNC_WITHOUT_GVL(GVL_FUNC(RotationalBlurImage), &args);
    new_image = reinterpret_cast<decltype(new_image)>(ret);
    rm_check_exception(exception, new_image, DestroyOnError);
    DestroyExceptionInfo(exception);

    return rm_image_new(new_image);
}