Magick++ 7.1.1
Loading...
Searching...
No Matches
Magick::DrawableCompositeImage Class Reference
Inheritance diagram for Magick::DrawableCompositeImage:
Collaboration diagram for Magick::DrawableCompositeImage:

Public Member Functions

 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_)
 
DrawableCompositeImageoperator= (const DrawableCompositeImage &original_)
 
void operator() (MagickCore::DrawingWand *context_) const
 
DrawableBasecopy () 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)
 
virtual void operator() (MagickCore::DrawingWand *) const
 
virtual DrawableBasecopy () const
 

Private Attributes

CompositeOperator _composition
 
double _x
 
double _y
 
double _width
 
double _height
 
Image_image
 

Detailed Description

Definition at line 723 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableCompositeImage() [1/7]

Magick::DrawableCompositeImage::DrawableCompositeImage ( double  x_,
double  y_,
const std::string &  filename_ 
)

Definition at line 534 of file Drawable.cpp.

537 : _composition(CopyCompositeOp),
538 _x(x_),
539 _y(y_),
540 _width(0),
541 _height(0),
542 _image(new Image(filename_))
543{
544 _width=_image->columns();
545 _height=_image->rows();
546}

◆ DrawableCompositeImage() [2/7]

Magick::DrawableCompositeImage::DrawableCompositeImage ( double  x_,
double  y_,
const Image image_ 
)

Definition at line 547 of file Drawable.cpp.

550 : _composition(CopyCompositeOp),
551 _x(x_),
552 _y(y_),
553 _width(0),
554 _height(0),
555 _image(new Image(image_))
556{
557 _width=_image->columns();
558 _height=_image->rows();
559}

◆ DrawableCompositeImage() [3/7]

Magick::DrawableCompositeImage::DrawableCompositeImage ( double  x_,
double  y_,
double  width_,
double  height_,
const std::string &  filename_ 
)

Definition at line 510 of file Drawable.cpp.

514 :_composition(CopyCompositeOp),
515 _x(x_),
516 _y(y_),
517 _width(width_),
518 _height(height_),
519 _image(new Image(filename_))
520{
521}

◆ DrawableCompositeImage() [4/7]

Magick::DrawableCompositeImage::DrawableCompositeImage ( double  x_,
double  y_,
double  width_,
double  height_,
const Image image_ 
)

Definition at line 522 of file Drawable.cpp.

526 :_composition(CopyCompositeOp),
527 _x(x_),
528 _y(y_),
529 _width(width_),
530 _height(height_),
531 _image(new Image(image_))
532{
533}

◆ DrawableCompositeImage() [5/7]

Magick::DrawableCompositeImage::DrawableCompositeImage ( double  x_,
double  y_,
double  width_,
double  height_,
const std::string &  filename_,
Magick::CompositeOperator  composition_ 
)

Definition at line 484 of file Drawable.cpp.

489 : _composition(composition_),
490 _x(x_),
491 _y(y_),
492 _width(width_),
493 _height(height_),
494 _image(new Image(filename_))
495{
496}

◆ DrawableCompositeImage() [6/7]

Magick::DrawableCompositeImage::DrawableCompositeImage ( double  x_,
double  y_,
double  width_,
double  height_,
const Image image_,
Magick::CompositeOperator  composition_ 
)

Definition at line 497 of file Drawable.cpp.

502 : _composition(composition_),
503 _x(x_),
504 _y(y_),
505 _width(width_),
506 _height(height_),
507 _image(new Image(image_))
508{
509}

◆ DrawableCompositeImage() [7/7]

Magick::DrawableCompositeImage::DrawableCompositeImage ( const DrawableCompositeImage original_)

Definition at line 561 of file Drawable.cpp.

563 : Magick::DrawableBase(original_),
564 _composition(original_._composition),
565 _x(original_._x),
566 _y(original_._y),
567 _width(original_._width),
568 _height(original_._height),
569 _image(new Image(*original_._image))
570{
571}

◆ ~DrawableCompositeImage()

Magick::DrawableCompositeImage::~DrawableCompositeImage ( void  )

Definition at line 572 of file Drawable.cpp.

573{
574 delete _image;
575}

Member Function Documentation

◆ composition() [1/2]

void Magick::DrawableCompositeImage::composition ( CompositeOperator  composition_)
inline

Definition at line 766 of file Drawable.h.

767 {
768 _composition = composition_;
769 }

◆ composition() [2/2]

CompositeOperator Magick::DrawableCompositeImage::composition ( void  ) const
inline

Definition at line 770 of file Drawable.h.

771 {
772 return _composition;
773 }

◆ copy()

Magick::DrawableBase * Magick::DrawableCompositeImage::copy ( ) const
virtual

Reimplemented from Magick::DrawableBase.

Definition at line 638 of file Drawable.cpp.

639{
640 return new DrawableCompositeImage(*this);
641}

◆ filename() [1/2]

void Magick::DrawableCompositeImage::filename ( const std::string &  image_)

Definition at line 594 of file Drawable.cpp.

595{
596 Image* temp_image = new Image(filename_);
597 delete _image;
598 _image = temp_image;
599}

◆ filename() [2/2]

std::string Magick::DrawableCompositeImage::filename ( void  ) const

Definition at line 600 of file Drawable.cpp.

601{
602 return _image->fileName();
603}

◆ height() [1/2]

void Magick::DrawableCompositeImage::height ( double  height_)
inline

Definition at line 805 of file Drawable.h.

806 {
807 _height = height_;
808 }

◆ height() [2/2]

double Magick::DrawableCompositeImage::height ( void  ) const
inline

Definition at line 809 of file Drawable.h.

810 {
811 return _height;
812 }

◆ image() [1/2]

void Magick::DrawableCompositeImage::image ( const Image image_)

Definition at line 605 of file Drawable.cpp.

606{
607 Image* temp_image = new Image(image_);
608 delete _image;
609 _image = temp_image;
610}

◆ image() [2/2]

Magick::Image Magick::DrawableCompositeImage::image ( void  ) const

Definition at line 611 of file Drawable.cpp.

612{
613 return *_image;
614}

◆ magick() [1/2]

void Magick::DrawableCompositeImage::magick ( std::string  magick_)

Definition at line 617 of file Drawable.cpp.

618{
619 _image->magick( magick_ );
620}

◆ magick() [2/2]

std::string Magick::DrawableCompositeImage::magick ( void  )

Definition at line 621 of file Drawable.cpp.

622{
623 return _image->magick();
624}

◆ operator()()

void Magick::DrawableCompositeImage::operator() ( MagickCore::DrawingWand *  context_) const
virtual

Reimplemented from Magick::DrawableBase.

Definition at line 626 of file Drawable.cpp.

628{
629 MagickWand
630 *magick_wand;
631
632 magick_wand=NewMagickWandFromImage(_image->constImage());
633 (void) DrawComposite( context_, _composition, _x, _y, _width, _height,
634 magick_wand );
635 magick_wand=DestroyMagickWand(magick_wand);
636}

◆ operator=()

Magick::DrawableCompositeImage & Magick::DrawableCompositeImage::operator= ( const DrawableCompositeImage original_)

Definition at line 577 of file Drawable.cpp.

579{
580 // If not being set to ourself
581 if ( this != &original_ )
582 {
583 _composition = original_._composition;
584 _x = original_._x;
585 _y = original_._y;
586 _width = original_._width;
587 _height = original_._height;
588 Image* temp_image = new Image(*original_._image);
589 delete _image;
590 _image = temp_image;
591 }
592 return *this;
593}

◆ width() [1/2]

void Magick::DrawableCompositeImage::width ( double  width_)
inline

Definition at line 796 of file Drawable.h.

797 {
798 _width = width_;
799 }

◆ width() [2/2]

double Magick::DrawableCompositeImage::width ( void  ) const
inline

Definition at line 800 of file Drawable.h.

801 {
802 return _width;
803 }

◆ x() [1/2]

void Magick::DrawableCompositeImage::x ( double  x_)
inline

Definition at line 778 of file Drawable.h.

779 {
780 _x = x_;
781 }

◆ x() [2/2]

double Magick::DrawableCompositeImage::x ( void  ) const
inline

Definition at line 782 of file Drawable.h.

783 {
784 return _x;
785 }

◆ y() [1/2]

void Magick::DrawableCompositeImage::y ( double  y_)
inline

Definition at line 787 of file Drawable.h.

788 {
789 _y = y_;
790 }

◆ y() [2/2]

double Magick::DrawableCompositeImage::y ( void  ) const
inline

Definition at line 791 of file Drawable.h.

792 {
793 return _y;
794 }

Member Data Documentation

◆ _composition

CompositeOperator Magick::DrawableCompositeImage::_composition
private

Definition at line 822 of file Drawable.h.

◆ _height

double Magick::DrawableCompositeImage::_height
private

Definition at line 826 of file Drawable.h.

◆ _image

Image* Magick::DrawableCompositeImage::_image
private

Definition at line 827 of file Drawable.h.

◆ _width

double Magick::DrawableCompositeImage::_width
private

Definition at line 825 of file Drawable.h.

◆ _x

double Magick::DrawableCompositeImage::_x
private

Definition at line 823 of file Drawable.h.

◆ _y

double Magick::DrawableCompositeImage::_y
private

Definition at line 824 of file Drawable.h.


The documentation for this class was generated from the following files: