Magick++ 6.9.13
Loading...
Searching...
No Matches
Magick::DrawableStrokeColor Class Reference
Inheritance diagram for Magick::DrawableStrokeColor:
Collaboration diagram for Magick::DrawableStrokeColor:

Public Member Functions

 DrawableStrokeColor (const Color &color_)
 
 DrawableStrokeColor (const DrawableStrokeColor &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 1839 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableStrokeColor() [1/2]

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

Definition at line 1232 of file Drawable.cpp.

1234 : _color(color_)
1235{
1236}

◆ DrawableStrokeColor() [2/2]

Magick::DrawableStrokeColor::DrawableStrokeColor ( const DrawableStrokeColor & original_)

Definition at line 1237 of file Drawable.cpp.

1239 : DrawableBase (original_),
1240 _color(original_._color)
1241{
1242}

◆ ~DrawableStrokeColor()

Magick::DrawableStrokeColor::~DrawableStrokeColor ( void )

Definition at line 1243 of file Drawable.cpp.

1244{
1245}

Member Function Documentation

◆ color() [1/2]

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

Definition at line 1854 of file Drawable.h.

1855 {
1856 _color = color_;
1857 }

◆ color() [2/2]

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

Definition at line 1858 of file Drawable.h.

1859 {
1860 return _color;
1861 }

◆ copy()

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

Implements Magick::DrawableBase.

Definition at line 1255 of file Drawable.cpp.

1256{
1257 return new DrawableStrokeColor(*this);
1258}

◆ operator()()

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

Implements Magick::DrawableBase.

Definition at line 1246 of file Drawable.cpp.

1248{
1249 PixelPacket color = static_cast<PixelPacket>(_color);
1250 PixelWand *pixel_wand=NewPixelWand();
1251 PixelSetQuantumColor(pixel_wand,&color);
1252 DrawSetStrokeColor(context_,pixel_wand);
1253 pixel_wand=DestroyPixelWand(pixel_wand);
1254}

Member Data Documentation

◆ _color

Color Magick::DrawableStrokeColor::_color
private

Definition at line 1864 of file Drawable.h.


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