Class: Magick::Image::DrawOptions
- Inherits:
-
Object
- Object
- Magick::Image::DrawOptions
- Defined in:
- ext/RMagick/rmmain.c
Instance Method Summary collapse
-
#initialize ⇒ Object
constructor
Initialize a DrawOptions object.
Constructor Details
#initialize ⇒ Object
Initialize a DrawOptions object.
Ruby usage:
- @verbatim DrawOptions#initialize @endverbatim
1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 |
# File 'ext/RMagick/rmdraw.c', line 1707 VALUE DrawOptions_initialize(VALUE self) { Draw *; Data_Get_Struct(self, Draw, ); ->info = magick_malloc(sizeof(DrawInfo)); if (!->info) { rb_raise(rb_eNoMemError, "not enough memory to continue"); } GetDrawInfo(NULL, ->info); if (rb_block_given_p()) { // Run the block in self's context (void) rb_obj_instance_eval(0, NULL, self); } return self; } |