Magick++ 7.1.2-32
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
Magick::DrawableFillColor Class Reference
Inheritance diagram for Magick::DrawableFillColor:
Magick::DrawableBase

Public Member Functions

 DrawableFillColor (const Color &color_)
 DrawableFillColor (const DrawableFillColor &original_)
void operator() (MagickCore::DrawingWand *context_) const
DrawableBase * copy () const
void color (const Color &color_)
Color color (void) 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 681 of file Drawable.cpp.

682 : _color(color_)
683{
684}

◆ DrawableFillColor() [2/2]

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

Definition at line 685 of file Drawable.cpp.

687 : DrawableBase (original_),
688 _color(original_._color)
689{
690}

◆ ~DrawableFillColor()

Magick::DrawableFillColor::~DrawableFillColor ( void )

Definition at line 691 of file Drawable.cpp.

692{
693}

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 703 of file Drawable.cpp.

704{
705 return new DrawableFillColor(*this);
706}

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 694 of file Drawable.cpp.

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

Field 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:
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Magick++/Drawable.h
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Drawable.cpp