Magick++ 7.1.1
Loading...
Searching...
No Matches
Magick::DrawableBorderColor Class Reference
Inheritance diagram for Magick::DrawableBorderColor:
Collaboration diagram for Magick::DrawableBorderColor:

Public Member Functions

 DrawableBorderColor (const Color &color_)
 
 DrawableBorderColor (const DrawableBorderColor &original_)
 
void operator() (MagickCore::DrawingWand *context_) const
 
void color (const Color &color_)
 
Color color (void) const
 
DrawableBasecopy () const
 
virtual void operator() (MagickCore::DrawingWand *) const
 
virtual DrawableBasecopy () const
 

Private Attributes

Color _color
 

Detailed Description

Definition at line 469 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableBorderColor() [1/2]

Magick::DrawableBorderColor::DrawableBorderColor ( const Color color_)

Definition at line 278 of file Drawable.cpp.

279 : _color(color_)
280{
281}

◆ DrawableBorderColor() [2/2]

Magick::DrawableBorderColor::DrawableBorderColor ( const DrawableBorderColor original_)

Definition at line 283 of file Drawable.cpp.

285 : DrawableBase(original_),
286 _color(original_._color)
287{
288}

◆ ~DrawableBorderColor()

Magick::DrawableBorderColor::~DrawableBorderColor ( void  )

Definition at line 290 of file Drawable.cpp.

291{
292}

Member Function Documentation

◆ color() [1/2]

void Magick::DrawableBorderColor::color ( const Color color_)

Definition at line 310 of file Drawable.cpp.

311{
312 _color=color_;
313}

◆ color() [2/2]

Magick::Color Magick::DrawableBorderColor::color ( void  ) const

Definition at line 315 of file Drawable.cpp.

316{
317 return(_color);
318}

◆ copy()

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

Reimplemented from Magick::DrawableBase.

Definition at line 320 of file Drawable.cpp.

321{
322 return(new DrawableBorderColor(*this));
323}

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 294 of file Drawable.cpp.

296{
297 PixelInfo
298 color;
299
300 PixelWand
301 *pixel_wand;
302
303 color=static_cast<PixelInfo>(_color);
304 pixel_wand=NewPixelWand();
305 PixelSetPixelColor(pixel_wand,&color);
306 DrawSetBorderColor(context_,pixel_wand);
307 pixel_wand=DestroyPixelWand(pixel_wand);
308}

Member Data Documentation

◆ _color

Color Magick::DrawableBorderColor::_color
private

Definition at line 489 of file Drawable.h.


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