Class: Magick::TextureFill
- Inherits:
-
Object
- Object
- Magick::TextureFill
- Defined in:
- ext/RMagick/rmmain.c
Instance Method Summary collapse
-
#fill(image_obj) ⇒ Object
Extern: TextureFill_fill(image_obj) Purpose: the TextureFill#fill method.
-
#initialize(texture_arg) ⇒ Object
constructor
Extern: TextureFill#initialize Purpose: Store the texture image.
Constructor Details
#initialize(texture_arg) ⇒ Object
Extern: TextureFill#initialize Purpose: Store the texture image
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 |
# File 'ext/RMagick/rmfill.c', line 505
VALUE
TextureFill_initialize(VALUE self, VALUE texture_arg)
{
rm_TextureFill *fill;
Image *texture;
volatile VALUE texture_image;
Data_Get_Struct(self, rm_TextureFill, fill);
texture_image = rm_cur_image(texture_arg);
// Bump the reference count on the texture image.
texture = rm_check_destroyed(texture_image);
(void) ReferenceImage(texture);
fill->texture = texture;
return self;
}
|
Instance Method Details
#fill(image_obj) ⇒ Object
Extern: TextureFill_fill(image_obj) Purpose: the TextureFill#fill method
528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
# File 'ext/RMagick/rmfill.c', line 528
VALUE
TextureFill_fill(VALUE self, VALUE image_obj)
{
rm_TextureFill *fill;
Image *image;
image = rm_check_destroyed(image_obj);
Data_Get_Struct(self, rm_TextureFill, fill);
(void) TextureImage(image, fill->texture);
rm_check_image_exception(image, RetainOnError);
return self;
}
|