Class: Magick::Image::PolaroidOptions
- Inherits:
-
Object
- Object
- Magick::Image::PolaroidOptions
- Includes:
- DrawAttribute
- Defined in:
- ext/RMagick/rmmain.cpp
Instance Method Summary collapse
-
#border_color=(border) ⇒ Magick::Pixel, String
Set the border color.
-
#initialize {|opt| ... } ⇒ Magick::Image::PolaroidOptions
constructor
Initialize a PolaroidOptions object.
-
#shadow_color=(shadow) ⇒ Magick::Pixel, String
Set the shadow color attribute.
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 {|opt| ... } ⇒ Magick::Image::PolaroidOptions
Initialize a PolaroidOptions object.
1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 |
# File 'ext/RMagick/rmdraw.cpp', line 1460
VALUE
PolaroidOptions_initialize(VALUE self)
{
Draw *draw;
ExceptionInfo *exception;
// Default shadow color
TypedData_Get_Struct(self, Draw, &rm_draw_data_type, draw);
exception = AcquireExceptionInfo();
QueryColorCompliance("gray75", AllCompliance, &draw->shadow_color, exception);
CHECK_EXCEPTION();
QueryColorCompliance("#dfdfdf", AllCompliance, &draw->info->border_color, exception);
CHECK_EXCEPTION();
DestroyExceptionInfo(exception);
if (rb_block_given_p())
{
rb_yield(self);
}
return self;
}
|
Instance Method Details
#border_color=(border) ⇒ Magick::Pixel, String
Set the border color.
1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 |
# File 'ext/RMagick/rmdraw.cpp', line 1523
VALUE
PolaroidOptions_border_color_eq(VALUE self, VALUE border)
{
Draw *draw;
rb_check_frozen(self);
TypedData_Get_Struct(self, Draw, &rm_draw_data_type, draw);
Color_to_PixelColor(&draw->info->border_color, border);
return border;
}
|
#shadow_color=(shadow) ⇒ Magick::Pixel, String
Set the shadow color attribute.
1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 |
# File 'ext/RMagick/rmdraw.cpp', line 1505
VALUE
PolaroidOptions_shadow_color_eq(VALUE self, VALUE shadow)
{
Draw *draw;
rb_check_frozen(self);
TypedData_Get_Struct(self, Draw, &rm_draw_data_type, draw);
Color_to_PixelColor(&draw->shadow_color, shadow);
return shadow;
}
|