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

Public Member Functions

 DrawableFillColor (const Color &color_)
 
 DrawableFillColor (const DrawableFillColor &original_)
 
void operator() (MagickCore::DrawingWand *context_) const
 
DrawableBasecopy () const
 
void color (const Color &color_)
 
Color color (void) const
 
virtual void operator() (MagickCore::DrawingWand *) const
 
virtual DrawableBasecopy () const
 

Private Attributes

Color _color
 

Detailed Description

Definition at line 936 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableFillColor() [1/2]

Magick::DrawableFillColor::DrawableFillColor ( const Color color_)

Definition at line 684 of file Drawable.cpp.

685 : _color(color_)
686{
687}

◆ DrawableFillColor() [2/2]

Magick::DrawableFillColor::DrawableFillColor ( const DrawableFillColor original_)

Definition at line 688 of file Drawable.cpp.

690 : DrawableBase (original_),
691 _color(original_._color)
692{
693}

◆ ~DrawableFillColor()

Magick::DrawableFillColor::~DrawableFillColor ( void  )

Definition at line 694 of file Drawable.cpp.

695{
696}

Member Function Documentation

◆ color() [1/2]

void Magick::DrawableFillColor::color ( const Color color_)
inline

Definition at line 951 of file Drawable.h.

952 {
953 _color = color_;
954 }

◆ color() [2/2]

Color Magick::DrawableFillColor::color ( void  ) const
inline

Definition at line 955 of file Drawable.h.

956 {
957 return _color;
958 }

◆ copy()

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

Reimplemented from Magick::DrawableBase.

Definition at line 706 of file Drawable.cpp.

707{
708 return new DrawableFillColor(*this);
709}

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 697 of file Drawable.cpp.

699{
700 PixelInfo color = static_cast<PixelInfo>(_color);
701 PixelWand *pixel_wand=NewPixelWand();
702 PixelSetPixelColor(pixel_wand,&color);
703 DrawSetFillColor(context_,pixel_wand);
704 pixel_wand=DestroyPixelWand(pixel_wand);
705}

Member Data Documentation

◆ _color

Color Magick::DrawableFillColor::_color
private

Definition at line 961 of file Drawable.h.


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