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

Constructor & Destructor Documentation

◆ DrawableTextUnderColor() [1/2]

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

Definition at line 1697 of file Drawable.cpp.

1699 : _color(color_)
1700{
1701}

◆ DrawableTextUnderColor() [2/2]

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

Definition at line 1702 of file Drawable.cpp.

1704 : DrawableBase (original_),
1705 _color(original_._color)
1706{
1707}

◆ ~DrawableTextUnderColor()

Magick::DrawableTextUnderColor::~DrawableTextUnderColor ( void )

Definition at line 1708 of file Drawable.cpp.

1709{
1710}

Member Function Documentation

◆ color() [1/2]

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

Definition at line 2237 of file Drawable.h.

2238 {
2239 _color = color_;
2240 }

◆ color() [2/2]

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

Definition at line 2241 of file Drawable.h.

2242 {
2243 return _color;
2244 }

◆ copy()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1720 of file Drawable.cpp.

1721{
1722 return new DrawableTextUnderColor(*this);
1723}

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1711 of file Drawable.cpp.

1713{
1714 PixelInfo color = static_cast<PixelInfo>(_color);
1715 PixelWand *pixel_wand=NewPixelWand();
1716 PixelSetPixelColor(pixel_wand,&color);
1717 DrawSetTextUnderColor(context_,pixel_wand);
1718 pixel_wand=DestroyPixelWand(pixel_wand);
1719}

Member Data Documentation

◆ _color

Color Magick::DrawableTextUnderColor::_color
private

Definition at line 2247 of file Drawable.h.


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