Class: Magick::Image::PolaroidOptions
- Inherits:
-
Object
- Object
- Magick::Image::PolaroidOptions
- Defined in:
- ext/RMagick/rmmain.c
Instance Method Summary collapse
-
#initialize ⇒ Object
constructor
Method: Magick::PolaroidOptions#initialize Purpose: Yield to an optional block.
Constructor Details
#initialize ⇒ Object
Method: Magick::PolaroidOptions#initialize Purpose: Yield to an optional block
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 |
# File 'ext/RMagick/rmdraw.c', line 1396
VALUE
PolaroidOptions_initialize(VALUE self)
{
Draw *draw;
ExceptionInfo exception;
// Default shadow color
Data_Get_Struct(self, Draw, draw);
GetExceptionInfo(&exception);
(void) QueryColorDatabase("gray75", &draw->shadow_color, &exception);
CHECK_EXCEPTION()
(void) QueryColorDatabase("#dfdfdf", &draw->info->border_color, &exception);
if (rb_block_given_p())
{
// Run the block in self's context
(void) rb_obj_instance_eval(0, NULL, self);
}
return self;
}
|