Method: Magick::Image#virtual_pixel_method=
- Defined in:
- ext/RMagick/rmimage.cpp
#virtual_pixel_method=(method) ⇒ Magick::VirtualPixelMethod
Specify how “virtual pixels” behave. Virtual pixels are pixels that are outside the boundaries of the image.
15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 |
# File 'ext/RMagick/rmimage.cpp', line 15444
VALUE
Image_virtual_pixel_method_eq(VALUE self, VALUE method)
{
Image *image;
VirtualPixelMethod vpm;
#if defined(IMAGEMAGICK_7)
ExceptionInfo *exception;
#endif
image = rm_check_frozen(self);
VALUE_TO_ENUM(method, vpm, VirtualPixelMethod);
#if defined(IMAGEMAGICK_7)
exception = AcquireExceptionInfo();
SetImageVirtualPixelMethod(image, vpm, exception);
CHECK_EXCEPTION();
DestroyExceptionInfo(exception);
#else
SetImageVirtualPixelMethod(image, vpm);
rm_check_image_exception(image, RetainOnError);
#endif
return method;
}
|