Magick++ 7.1.1
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
 
virtual void operator() (MagickCore::DrawingWand *) const
 
virtual DrawableBasecopy () const
 

Private Attributes

Color _color
 

Detailed Description

Definition at line 1912 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableStrokeColor() [1/2]

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

Definition at line 1381 of file Drawable.cpp.

1383 : _color(color_)
1384{
1385}

◆ DrawableStrokeColor() [2/2]

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

Definition at line 1386 of file Drawable.cpp.

1388 : DrawableBase (original_),
1389 _color(original_._color)
1390{
1391}

◆ ~DrawableStrokeColor()

Magick::DrawableStrokeColor::~DrawableStrokeColor ( void  )

Definition at line 1392 of file Drawable.cpp.

1393{
1394}

Member Function Documentation

◆ color() [1/2]

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

Definition at line 1927 of file Drawable.h.

1928 {
1929 _color = color_;
1930 }

◆ color() [2/2]

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

Definition at line 1931 of file Drawable.h.

1932 {
1933 return _color;
1934 }

◆ copy()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1404 of file Drawable.cpp.

1405{
1406 return new DrawableStrokeColor(*this);
1407}

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1395 of file Drawable.cpp.

1397{
1398 PixelInfo color = static_cast<PixelInfo>(_color);
1399 PixelWand *pixel_wand=NewPixelWand();
1400 PixelSetPixelColor(pixel_wand,&color);
1401 DrawSetStrokeColor(context_,pixel_wand);
1402 pixel_wand=DestroyPixelWand(pixel_wand);
1403}

Member Data Documentation

◆ _color

Color Magick::DrawableStrokeColor::_color
private

Definition at line 1937 of file Drawable.h.


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