Magick++ 7.1.1
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
 
virtual void operator() (MagickCore::DrawingWand *) const
 
virtual DrawableBasecopy () 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 1696 of file Drawable.cpp.

1698 : _color(color_)
1699{
1700}

◆ DrawableTextUnderColor() [2/2]

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

Definition at line 1701 of file Drawable.cpp.

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

◆ ~DrawableTextUnderColor()

Magick::DrawableTextUnderColor::~DrawableTextUnderColor ( void  )

Definition at line 1707 of file Drawable.cpp.

1708{
1709}

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

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

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1710 of file Drawable.cpp.

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

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: