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

Public Member Functions

void backgroundColor (const Color &backgroundColor_)
 
Color backgroundColor (void) const
 
void compose (CompositeOperator compose_)
 
CompositeOperator compose (void) const
 
void fileName (const std::string &fileName_)
 
std::string fileName (void) const
 
void fillColor (const Color &fill_)
 
Color fillColor (void) const
 
void font (const std::string &font_)
 
std::string font (void) const
 
void geometry (const Geometry &geometry_)
 
Geometry geometry (void) const
 
void gravity (GravityType gravity_)
 
GravityType gravity (void) const
 
void label (const std::string &label_)
 
std::string label (void) const
 
void penColor (const Color &pen_)
 
Color penColor (void) const
 
void pointSize (size_t pointSize_)
 
size_t pointSize (void) const
 
void shadow (bool shadow_)
 
bool shadow (void) const
 
void strokeColor (const Color &stroke_)
 
Color strokeColor (void) const
 
void texture (const std::string &texture_)
 
std::string texture (void) const
 
void tile (const Geometry &tile_)
 
Geometry tile (void) const
 
void title (const std::string &title_)
 
std::string title (void) const
 
void transparentColor (const Color &transparentColor_)
 
Color transparentColor (void) const
 
virtual void updateMontageInfo (MagickCore::MontageInfo &montageInfo_) const
 

Private Attributes

Color _backgroundColor
 
CompositeOperator _compose
 
std::string _fileName
 
Color _fill
 
std::string _font
 
Geometry _geometry
 
GravityType _gravity
 
std::string _label
 
size_t _pointSize
 
bool _shadow
 
Color _stroke
 
std::string _texture
 
Geometry _tile
 
std::string _title
 
Color _transparentColor
 

Detailed Description

Definition at line 21 of file Montage.h.

Constructor & Destructor Documentation

◆ Montage()

Magick::Montage::Montage ( void )

Definition at line 18 of file Montage.cpp.

19 : _backgroundColor("#ffffff"),
20 _compose(OverCompositeOp),
21 _fileName(),
22 _fill("#000000ff"),
23 _font(),
24 _geometry("120x120+4+3>"),
25 _gravity(CenterGravity),
26 _label(),
27 _pointSize(12),
28 _shadow(false),
29 _stroke(),
30 _texture(),
31 _tile("6x4"),
32 _title(),
33 _transparentColor()
34{
35}

◆ ~Montage()

Magick::Montage::~Montage ( void )
virtual

Definition at line 37 of file Montage.cpp.

38{
39}

Member Function Documentation

◆ backgroundColor() [1/2]

void Magick::Montage::backgroundColor ( const Color & backgroundColor_)
inline

Definition at line 168 of file Montage.h.

169{
170 _backgroundColor=backgroundColor_;
171}

◆ backgroundColor() [2/2]

Magick::Color Magick::Montage::backgroundColor ( void ) const
inline

Definition at line 173 of file Montage.h.

174{
175 return(_backgroundColor);
176}

◆ compose()

Magick::CompositeOperator Magick::Montage::compose ( void ) const
inline

Definition at line 183 of file Montage.h.

184{
185 return(_compose);
186}

◆ fileName() [1/2]

void Magick::Montage::fileName ( const std::string & fileName_)
inline

Definition at line 188 of file Montage.h.

189{
190 _fileName=fileName_;
191}

◆ fileName() [2/2]

std::string Magick::Montage::fileName ( void ) const
inline

Definition at line 193 of file Montage.h.

194{
195 return(_fileName);
196}

◆ fillColor() [1/2]

void Magick::Montage::fillColor ( const Color & fill_)
inline

Definition at line 198 of file Montage.h.

199{
200 _fill=fill_;
201}

◆ fillColor() [2/2]

Magick::Color Magick::Montage::fillColor ( void ) const
inline

Definition at line 203 of file Montage.h.

204{
205 return(_fill);
206}

◆ font() [1/2]

void Magick::Montage::font ( const std::string & font_)
inline

Definition at line 208 of file Montage.h.

209{
210 _font=font_;
211}

◆ font() [2/2]

std::string Magick::Montage::font ( void ) const
inline

Definition at line 213 of file Montage.h.

214{
215 return(_font);
216}

◆ geometry() [1/2]

void Magick::Montage::geometry ( const Geometry & geometry_)
inline

Definition at line 218 of file Montage.h.

219{
220 _geometry=geometry_;
221}

◆ geometry() [2/2]

Magick::Geometry Magick::Montage::geometry ( void ) const
inline

Definition at line 223 of file Montage.h.

224{
225 return(_geometry);
226}

◆ gravity()

Magick::GravityType Magick::Montage::gravity ( void ) const
inline

Definition at line 233 of file Montage.h.

234{
235 return(_gravity);
236}

◆ label() [1/2]

void Magick::Montage::label ( const std::string & label_)
inline

Definition at line 238 of file Montage.h.

239{
240 _label=label_;
241}

◆ label() [2/2]

std::string Magick::Montage::label ( void ) const
inline

Definition at line 243 of file Montage.h.

244{
245 return(_label);
246}

◆ penColor() [1/2]

void Magick::Montage::penColor ( const Color & pen_)
inline

Definition at line 248 of file Montage.h.

249{
250 _fill=pen_;
251 _stroke=Color("none");
252}

◆ penColor() [2/2]

Magick::Color Magick::Montage::penColor ( void ) const
inline

Definition at line 254 of file Montage.h.

255{
256 return _fill;
257}

◆ pointSize() [1/2]

void Magick::Montage::pointSize ( size_t pointSize_)
inline

Definition at line 259 of file Montage.h.

260{
261 _pointSize=pointSize_;
262}

◆ pointSize() [2/2]

size_t Magick::Montage::pointSize ( void ) const
inline

Definition at line 264 of file Montage.h.

265{
266 return(_pointSize);
267}

◆ shadow() [1/2]

void Magick::Montage::shadow ( bool shadow_)
inline

Definition at line 269 of file Montage.h.

270{
271 _shadow=shadow_;
272}

◆ shadow() [2/2]

bool Magick::Montage::shadow ( void ) const
inline

Definition at line 274 of file Montage.h.

275{
276 return(_shadow);
277}

◆ strokeColor() [1/2]

void Magick::Montage::strokeColor ( const Color & stroke_)
inline

Definition at line 279 of file Montage.h.

280{
281 _stroke=stroke_;
282}

◆ strokeColor() [2/2]

Magick::Color Magick::Montage::strokeColor ( void ) const
inline

Definition at line 284 of file Montage.h.

285{
286 return(_stroke);
287}

◆ texture() [1/2]

void Magick::Montage::texture ( const std::string & texture_)
inline

Definition at line 289 of file Montage.h.

290{
291 _texture=texture_;
292}

◆ texture() [2/2]

std::string Magick::Montage::texture ( void ) const
inline

Definition at line 294 of file Montage.h.

295{
296 return(_texture);
297}

◆ tile() [1/2]

void Magick::Montage::tile ( const Geometry & tile_)
inline

Definition at line 299 of file Montage.h.

300{
301 _tile=tile_;
302}

◆ tile() [2/2]

Magick::Geometry Magick::Montage::tile ( void ) const
inline

Definition at line 304 of file Montage.h.

305{
306 return(_tile);
307}

◆ title() [1/2]

void Magick::Montage::title ( const std::string & title_)
inline

Definition at line 309 of file Montage.h.

310{
311 _title=title_;
312}

◆ title() [2/2]

std::string Magick::Montage::title ( void ) const
inline

Definition at line 314 of file Montage.h.

315{
316 return(_title);
317}

◆ transparentColor() [1/2]

void Magick::Montage::transparentColor ( const Color & transparentColor_)
inline

Definition at line 319 of file Montage.h.

320{
321 _transparentColor=transparentColor_;
322}

◆ transparentColor() [2/2]

Magick::Color Magick::Montage::transparentColor ( void ) const
inline

Definition at line 324 of file Montage.h.

325{
326 return(_transparentColor);
327}

◆ updateMontageInfo()

void Magick::Montage::updateMontageInfo ( MagickCore::MontageInfo & montageInfo_) const
virtual

Definition at line 41 of file Montage.cpp.

42{
43 (void) memset(&montageInfo_,0,sizeof(montageInfo_));
44
45 // background_color
46 montageInfo_.background_color=_backgroundColor;
47 // border_color
48 montageInfo_.border_color=Color();
49 // border_width
50 montageInfo_.border_width=0;
51 // filename
52 if (_fileName.length() != 0)
53 {
54 _fileName.copy(montageInfo_.filename,MaxTextExtent-1);
55 montageInfo_.filename[_fileName.length()]=0; // null terminate
56 }
57 // fill
58 montageInfo_.fill=_fill;
59 // font
60 if (_font.length() != 0)
61 Magick::CloneString(&montageInfo_.font,_font);
62 // geometry
63 if (_geometry.isValid())
64 Magick::CloneString(&montageInfo_.geometry,_geometry);
65 // gravity
66 montageInfo_.gravity=_gravity;
67 // matte_color
68 montageInfo_.matte_color=Color();
69 // pointsize
70 montageInfo_.pointsize=_pointSize;
71 // shadow
72 montageInfo_.shadow=static_cast<MagickBooleanType>(_shadow ? MagickTrue :
73 MagickFalse);
74 // signature (validity stamp)
75 montageInfo_.signature=MagickSignature;
76 // stroke
77 montageInfo_.stroke=_stroke;
78 // texture
79 if (_texture.length() != 0)
80 Magick::CloneString(&montageInfo_.texture,_texture);
81 // tile
82 if (_tile.isValid())
83 Magick::CloneString( &montageInfo_.tile, _tile );
84 // title
85 if (_title.length() != 0)
86 Magick::CloneString(&montageInfo_.title,_title);
87}

Member Data Documentation

◆ _backgroundColor

Color Magick::Montage::_backgroundColor
private

Definition at line 101 of file Montage.h.

◆ _compose

CompositeOperator Magick::Montage::_compose
private

Definition at line 102 of file Montage.h.

◆ _fileName

std::string Magick::Montage::_fileName
private

Definition at line 103 of file Montage.h.

◆ _fill

Color Magick::Montage::_fill
private

Definition at line 104 of file Montage.h.

◆ _font

std::string Magick::Montage::_font
private

Definition at line 105 of file Montage.h.

◆ _geometry

Geometry Magick::Montage::_geometry
private

Definition at line 106 of file Montage.h.

◆ _gravity

GravityType Magick::Montage::_gravity
private

Definition at line 107 of file Montage.h.

◆ _label

std::string Magick::Montage::_label
private

Definition at line 108 of file Montage.h.

◆ _pointSize

size_t Magick::Montage::_pointSize
private

Definition at line 109 of file Montage.h.

◆ _shadow

bool Magick::Montage::_shadow
private

Definition at line 110 of file Montage.h.

◆ _stroke

Color Magick::Montage::_stroke
private

Definition at line 111 of file Montage.h.

◆ _texture

std::string Magick::Montage::_texture
private

Definition at line 112 of file Montage.h.

◆ _tile

Geometry Magick::Montage::_tile
private

Definition at line 113 of file Montage.h.

◆ _title

std::string Magick::Montage::_title
private

Definition at line 114 of file Montage.h.

◆ _transparentColor

Color Magick::Montage::_transparentColor
private

Definition at line 115 of file Montage.h.


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