|
| | DrawableCompositeImage (double x_, double y_, const std::string &filename_) |
| |
| | DrawableCompositeImage (double x_, double y_, const Image &image_) |
| |
| | DrawableCompositeImage (double x_, double y_, double width_, double height_, const std::string &filename_) |
| |
| | DrawableCompositeImage (double x_, double y_, double width_, double height_, const Image &image_) |
| |
|
| DrawableCompositeImage (double x_, double y_, double width_, double height_, const std::string &filename_, CompositeOperator composition_) |
| |
|
| DrawableCompositeImage (double x_, double y_, double width_, double height_, const Image &image_, CompositeOperator composition_) |
| |
| | DrawableCompositeImage (const DrawableCompositeImage &original_) |
| |
| DrawableCompositeImage & | operator= (const DrawableCompositeImage &original_) |
| |
| void | operator() (MagickCore::DrawingWand *context_) const |
| |
| DrawableBase * | copy () const |
| |
| void | composition (CompositeOperator composition_) |
| |
| CompositeOperator | composition (void) const |
| |
| void | filename (const std::string &image_) |
| |
| std::string | filename (void) const |
| |
| void | x (double x_) |
| |
| double | x (void) const |
| |
| void | y (double y_) |
| |
| double | y (void) const |
| |
| void | width (double width_) |
| |
| double | width (void) const |
| |
| void | height (double height_) |
| |
| double | height (void) const |
| |
| void | image (const Image &image_) |
| |
| Magick::Image | image (void) const |
| |
| void | magick (std::string magick_) |
| |
| std::string | magick (void) |
| |
Definition at line 643 of file Drawable.h.
◆ DrawableCompositeImage() [1/5]
| Magick::DrawableCompositeImage::DrawableCompositeImage |
( |
double | x_, |
|
|
double | y_, |
|
|
const std::string & | filename_ ) |
Definition at line 446 of file Drawable.cpp.
449 : _composition(CopyCompositeOp),
450 _x(x_),
451 _y(y_),
452 _width(0),
453 _height(0),
454 _image(new Image(filename_))
455{
456 _width=_image->columns();
457 _height=_image->rows();
458}
◆ DrawableCompositeImage() [2/5]
| Magick::DrawableCompositeImage::DrawableCompositeImage |
( |
double | x_, |
|
|
double | y_, |
|
|
const Image & | image_ ) |
Definition at line 459 of file Drawable.cpp.
462 : _composition(CopyCompositeOp),
463 _x(x_),
464 _y(y_),
465 _width(0),
466 _height(0),
467 _image(new Image(image_))
468{
469 _width=_image->columns();
470 _height=_image->rows();
471}
◆ DrawableCompositeImage() [3/5]
| Magick::DrawableCompositeImage::DrawableCompositeImage |
( |
double | x_, |
|
|
double | y_, |
|
|
double | width_, |
|
|
double | height_, |
|
|
const std::string & | filename_ ) |
Definition at line 422 of file Drawable.cpp.
426 :_composition(CopyCompositeOp),
427 _x(x_),
428 _y(y_),
429 _width(width_),
430 _height(height_),
431 _image(new Image(filename_))
432{
433}
◆ DrawableCompositeImage() [4/5]
| Magick::DrawableCompositeImage::DrawableCompositeImage |
( |
double | x_, |
|
|
double | y_, |
|
|
double | width_, |
|
|
double | height_, |
|
|
const Image & | image_ ) |
Definition at line 434 of file Drawable.cpp.
438 :_composition(CopyCompositeOp),
439 _x(x_),
440 _y(y_),
441 _width(width_),
442 _height(height_),
443 _image(new Image(image_))
444{
445}
◆ DrawableCompositeImage() [5/5]
Definition at line 473 of file Drawable.cpp.
475 : Magick::DrawableBase(original_),
476 _composition(original_._composition),
477 _x(original_._x),
478 _y(original_._y),
479 _width(original_._width),
480 _height(original_._height),
481 _image(new Image(*original_._image))
482{
483}
◆ ~DrawableCompositeImage()
| Magick::DrawableCompositeImage::~DrawableCompositeImage |
( |
void | | ) |
|
◆ composition() [1/2]
| void Magick::DrawableCompositeImage::composition |
( |
CompositeOperator | composition_ | ) |
|
|
inline |
Definition at line 686 of file Drawable.h.
687 {
688 _composition = composition_;
689 }
◆ composition() [2/2]
| CompositeOperator Magick::DrawableCompositeImage::composition |
( |
void | | ) |
const |
|
inline |
Definition at line 690 of file Drawable.h.
691 {
692 return _composition;
693 }
◆ copy()
◆ filename() [1/2]
| void Magick::DrawableCompositeImage::filename |
( |
const std::string & | image_ | ) |
|
Definition at line 506 of file Drawable.cpp.
507{
508 Image* temp_image = new Image(filename_);
509 delete _image;
510 _image = temp_image;
511}
◆ filename() [2/2]
| std::string Magick::DrawableCompositeImage::filename |
( |
void | | ) |
const |
Definition at line 512 of file Drawable.cpp.
513{
514 return _image->fileName();
515}
◆ height() [1/2]
| void Magick::DrawableCompositeImage::height |
( |
double | height_ | ) |
|
|
inline |
Definition at line 725 of file Drawable.h.
726 {
727 _height = height_;
728 }
◆ height() [2/2]
| double Magick::DrawableCompositeImage::height |
( |
void | | ) |
const |
|
inline |
Definition at line 729 of file Drawable.h.
730 {
731 return _height;
732 }
◆ image() [1/2]
| void Magick::DrawableCompositeImage::image |
( |
const Image & | image_ | ) |
|
Definition at line 517 of file Drawable.cpp.
518{
519 Image* temp_image = new Image(image_);
520 delete _image;
521 _image = temp_image;
522}
◆ image() [2/2]
| Magick::Image Magick::DrawableCompositeImage::image |
( |
void | | ) |
const |
◆ magick() [1/2]
| void Magick::DrawableCompositeImage::magick |
( |
std::string | magick_ | ) |
|
Definition at line 529 of file Drawable.cpp.
530{
531 _image->magick( magick_ );
532}
◆ magick() [2/2]
| std::string Magick::DrawableCompositeImage::magick |
( |
void | | ) |
|
Definition at line 533 of file Drawable.cpp.
534{
535 return _image->magick();
536}
◆ operator()()
| void Magick::DrawableCompositeImage::operator() |
( |
MagickCore::DrawingWand * | context_ | ) |
const |
|
virtual |
Implements Magick::DrawableBase.
Definition at line 538 of file Drawable.cpp.
540{
541 MagickWand
542 *magick_wand;
543
544 magick_wand=NewMagickWandFromImage(_image->constImage());
545 (void) DrawComposite( context_, _composition, _x, _y, _width, _height,
546 magick_wand );
547 magick_wand=DestroyMagickWand(magick_wand);
548}
◆ operator=()
Definition at line 489 of file Drawable.cpp.
491{
492
493 if ( this != &original_ )
494 {
495 _composition = original_._composition;
496 _x = original_._x;
497 _y = original_._y;
498 _width = original_._width;
499 _height = original_._height;
500 Image* temp_image = new Image(*original_._image);
501 delete _image;
502 _image = temp_image;
503 }
504 return *this;
505}
◆ width() [1/2]
| void Magick::DrawableCompositeImage::width |
( |
double | width_ | ) |
|
|
inline |
Definition at line 716 of file Drawable.h.
717 {
718 _width = width_;
719 }
◆ width() [2/2]
| double Magick::DrawableCompositeImage::width |
( |
void | | ) |
const |
|
inline |
Definition at line 720 of file Drawable.h.
721 {
722 return _width;
723 }
◆ x() [1/2]
| void Magick::DrawableCompositeImage::x |
( |
double | x_ | ) |
|
|
inline |
◆ x() [2/2]
| double Magick::DrawableCompositeImage::x |
( |
void | | ) |
const |
|
inline |
Definition at line 702 of file Drawable.h.
703 {
704 return _x;
705 }
◆ y() [1/2]
| void Magick::DrawableCompositeImage::y |
( |
double | y_ | ) |
|
|
inline |
◆ y() [2/2]
| double Magick::DrawableCompositeImage::y |
( |
void | | ) |
const |
|
inline |
Definition at line 711 of file Drawable.h.
712 {
713 return _y;
714 }
◆ _composition
| CompositeOperator Magick::DrawableCompositeImage::_composition |
|
private |
◆ _height
| double Magick::DrawableCompositeImage::_height |
|
private |
◆ _image
| Image* Magick::DrawableCompositeImage::_image |
|
private |
◆ _width
| double Magick::DrawableCompositeImage::_width |
|
private |
◆ _x
| double Magick::DrawableCompositeImage::_x |
|
private |
◆ _y
| double Magick::DrawableCompositeImage::_y |
|
private |
The documentation for this class was generated from the following files: