Class: Magick::Image::PolaroidOptions
- Inherits:
-
Object
- Object
- Magick::Image::PolaroidOptions
- Defined in:
- ext/RMagick/rmmain.c
Class Method Summary collapse
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
1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 |
# File 'ext/RMagick/rmdraw.c', line 1354
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()
if (rb_block_given_p())
{
// Run the block in self's context
(void) rb_obj_instance_eval(0, NULL, self);
}
return self;
}
|
Class Method Details
.new ⇒ Object
1338 1339 1340 1341 1342 1343 1344 1345 1346 |
# File 'ext/RMagick/rmdraw.c', line 1338
VALUE PolaroidOptions_new(VALUE class)
{
volatile VALUE polaroid_obj;
polaroid_obj = PolaroidOptions_alloc(class);
rb_obj_call_init(polaroid_obj, 0, NULL);
return polaroid_obj;
}
|