Method: Magick::Image#clone
- Defined in:
- ext/RMagick/rmimage.cpp
#clone ⇒ Magick::Image
Same as #dup except the frozen state of the original is propagated to the new copy.
2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 |
# File 'ext/RMagick/rmimage.cpp', line 2732
VALUE
Image_clone(VALUE self)
{
VALUE clone;
clone = Image_dup(self);
if (OBJ_FROZEN(self))
{
OBJ_FREEZE(clone);
}
RB_GC_GUARD(clone);
return clone;
}
|