Class: Magick::Image::DrawOptions
- Inherits:
-
Object
- Object
- Magick::Image::DrawOptions
- Includes:
- DrawAttribute
- Defined in:
- ext/RMagick/rmmain.cpp
Instance Method Summary collapse
-
#initialize ⇒ Magick::Image::DrawOptions
constructor
Initialize a DrawOptions object.
Methods included from DrawAttribute
#affine=, #align=, #decorate=, #density=, #encoding=, #fill=, #fill_pattern=, #font=, #font_family=, #font_stretch=, #font_style=, #font_weight=, #gravity=, #interline_spacing=, #interword_spacing=, #kerning=, #pointsize=, #rotation=, #stroke=, #stroke_pattern=, #stroke_width=, #text_antialias=, #tile=, #undercolor=
Constructor Details
#initialize ⇒ Magick::Image::DrawOptions
Initialize a DrawOptions object.
1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 |
# File 'ext/RMagick/rmdraw.cpp', line 1401
VALUE
DrawOptions_initialize(VALUE self)
{
Draw *draw_options;
TypedData_Get_Struct(self, Draw, &rm_draw_data_type, draw_options);
draw_options->info = AcquireDrawInfo();
if (!draw_options->info)
{
rb_raise(rb_eNoMemError, "not enough memory to continue");
}
if (rb_block_given_p())
{
rb_yield(self);
}
return self;
}
|