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

Public Member Functions

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

Constructor & Destructor Documentation

◆ DrawableTextUnderColor() [1/2]

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

Definition at line 1506 of file Drawable.cpp.

1508 : _color(color_)
1509{
1510}

◆ DrawableTextUnderColor() [2/2]

Magick::DrawableTextUnderColor::DrawableTextUnderColor ( const DrawableTextUnderColor & original_)

Definition at line 1511 of file Drawable.cpp.

1513 : DrawableBase (original_),
1514 _color(original_._color)
1515{
1516}

◆ ~DrawableTextUnderColor()

Magick::DrawableTextUnderColor::~DrawableTextUnderColor ( void )

Definition at line 1517 of file Drawable.cpp.

1518{
1519}

Member Function Documentation

◆ color() [1/2]

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

Definition at line 2138 of file Drawable.h.

2139 {
2140 _color = color_;
2141 }

◆ color() [2/2]

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

Definition at line 2142 of file Drawable.h.

2143 {
2144 return _color;
2145 }

◆ copy()

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

Implements Magick::DrawableBase.

Definition at line 1529 of file Drawable.cpp.

1530{
1531 return new DrawableTextUnderColor(*this);
1532}

◆ operator()()

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

Implements Magick::DrawableBase.

Definition at line 1520 of file Drawable.cpp.

1522{
1523 PixelPacket color = static_cast<PixelPacket>(_color);
1524 PixelWand *pixel_wand=NewPixelWand();
1525 PixelSetQuantumColor(pixel_wand,&color);
1526 DrawSetTextUnderColor(context_,pixel_wand);
1527 pixel_wand=DestroyPixelWand(pixel_wand);
1528}

Member Data Documentation

◆ _color

Color Magick::DrawableTextUnderColor::_color
private

Definition at line 2148 of file Drawable.h.


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