Magick++ 6.9.13
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

Private Attributes

Color _color

Detailed Description

Definition at line 854 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableFillColor() [1/2]

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

Definition at line 591 of file Drawable.cpp.

592 : _color(color_)
593{
594}

◆ DrawableFillColor() [2/2]

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

Definition at line 595 of file Drawable.cpp.

597 : DrawableBase (original_),
598 _color(original_._color)
599{
600}

◆ ~DrawableFillColor()

Magick::DrawableFillColor::~DrawableFillColor ( void )

Definition at line 601 of file Drawable.cpp.

602{
603}

Member Function Documentation

◆ color() [1/2]

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

Definition at line 869 of file Drawable.h.

870 {
871 _color = color_;
872 }

◆ color() [2/2]

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

Definition at line 873 of file Drawable.h.

874 {
875 return _color;
876 }

◆ copy()

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

Implements Magick::DrawableBase.

Definition at line 613 of file Drawable.cpp.

614{
615 return new DrawableFillColor(*this);
616}

◆ operator()()

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

Implements Magick::DrawableBase.

Definition at line 604 of file Drawable.cpp.

606{
607 PixelPacket color = static_cast<PixelPacket>(_color);
608 PixelWand *pixel_wand=NewPixelWand();
609 PixelSetQuantumColor(pixel_wand,&color);
610 DrawSetFillColor(context_,pixel_wand);
611 pixel_wand=DestroyPixelWand(pixel_wand);
612}

Member Data Documentation

◆ _color

Color Magick::DrawableFillColor::_color
private

Definition at line 879 of file Drawable.h.


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