Magick++ 7.1.2
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 1912 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableStrokeColor() [1/2]

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

Definition at line 1382 of file Drawable.cpp.

1384 : _color(color_)
1385{
1386}

◆ DrawableStrokeColor() [2/2]

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

Definition at line 1387 of file Drawable.cpp.

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

◆ ~DrawableStrokeColor()

Magick::DrawableStrokeColor::~DrawableStrokeColor ( void )

Definition at line 1393 of file Drawable.cpp.

1394{
1395}

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

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

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1396 of file Drawable.cpp.

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

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: