Magick++ 7.1.1
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 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
 
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 24 of file Montage.h.

Constructor & Destructor Documentation

◆ Montage()

Magick::Montage::Montage ( void  )

Definition at line 21 of file Montage.cpp.

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

◆ ~Montage()

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

Definition at line 39 of file Montage.cpp.

40{
41}

Member Function Documentation

◆ backgroundColor() [1/2]

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

Definition at line 43 of file Montage.cpp.

44{
45 _backgroundColor=backgroundColor_;
46}

◆ backgroundColor() [2/2]

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

Definition at line 48 of file Montage.cpp.

49{
50 return(_backgroundColor);
51}

◆ fileName() [1/2]

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

Definition at line 53 of file Montage.cpp.

54{
55 _fileName=fileName_;
56}

◆ fileName() [2/2]

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

Definition at line 58 of file Montage.cpp.

59{
60 return(_fileName);
61}

◆ fillColor() [1/2]

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

Definition at line 63 of file Montage.cpp.

64{
65 _fill=fill_;
66}

◆ fillColor() [2/2]

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

Definition at line 68 of file Montage.cpp.

69{
70 return(_fill);
71}

◆ font() [1/2]

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

Definition at line 73 of file Montage.cpp.

74{
75 _font=font_;
76}

◆ font() [2/2]

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

Definition at line 78 of file Montage.cpp.

79{
80 return(_font);
81}

◆ geometry() [1/2]

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

Definition at line 83 of file Montage.cpp.

84{
85 _geometry=geometry_;
86}

◆ geometry() [2/2]

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

Definition at line 88 of file Montage.cpp.

89{
90 return(_geometry);
91}

◆ gravity() [1/2]

void Magick::Montage::gravity ( Magick::GravityType  gravity_)

Definition at line 93 of file Montage.cpp.

94{
95 _gravity=gravity_;
96}

◆ gravity() [2/2]

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

Definition at line 98 of file Montage.cpp.

99{
100 return(_gravity);
101}

◆ label() [1/2]

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

Definition at line 103 of file Montage.cpp.

104{
105 _label=label_;
106}

◆ label() [2/2]

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

Definition at line 108 of file Montage.cpp.

109{
110 return(_label);
111}

◆ pointSize() [1/2]

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

Definition at line 113 of file Montage.cpp.

114{
115 _pointSize=pointSize_;
116}

◆ pointSize() [2/2]

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

Definition at line 118 of file Montage.cpp.

119{
120 return(_pointSize);
121}

◆ shadow() [1/2]

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

Definition at line 123 of file Montage.cpp.

124{
125 _shadow=shadow_;
126}

◆ shadow() [2/2]

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

Definition at line 128 of file Montage.cpp.

129{
130 return(_shadow);
131}

◆ strokeColor() [1/2]

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

Definition at line 133 of file Montage.cpp.

134{
135 _stroke=stroke_;
136}

◆ strokeColor() [2/2]

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

Definition at line 138 of file Montage.cpp.

139{
140 return(_stroke);
141}

◆ texture() [1/2]

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

Definition at line 143 of file Montage.cpp.

144{
145 _texture=texture_;
146}

◆ texture() [2/2]

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

Definition at line 148 of file Montage.cpp.

149{
150 return(_texture);
151}

◆ tile() [1/2]

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

Definition at line 153 of file Montage.cpp.

154{
155 _tile=tile_;
156}

◆ tile() [2/2]

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

Definition at line 158 of file Montage.cpp.

159{
160 return(_tile);
161}

◆ title() [1/2]

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

Definition at line 163 of file Montage.cpp.

164{
165 _title=title_;
166}

◆ title() [2/2]

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

Definition at line 168 of file Montage.cpp.

169{
170 return(_title);
171}

◆ transparentColor() [1/2]

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

Definition at line 173 of file Montage.cpp.

174{
175 _transparentColor=transparentColor_;
176}

◆ transparentColor() [2/2]

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

Definition at line 178 of file Montage.cpp.

179{
180 return(_transparentColor);
181}

◆ updateMontageInfo()

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

Definition at line 183 of file Montage.cpp.

184{
185 (void) memset(&montageInfo_,0,sizeof(montageInfo_));
186
187 // matte_color
188 montageInfo_.matte_color=Color();
189 // background_color
190 montageInfo_.background_color=_backgroundColor;
191 // border_color
192 montageInfo_.border_color=Color();
193 // border_width
194 montageInfo_.border_width=0;
195 // filename
196 if (_font.length() != 0)
197 {
198 _fileName.copy(montageInfo_.filename,MagickPathExtent-1);
199 montageInfo_.filename[ _fileName.length() ] = 0; // null terminate
200 }
201 // fill
202 montageInfo_.fill=_fill;
203 // font
204 if (_font.length() != 0)
205 Magick::CloneString(&montageInfo_.font,_font);
206 // geometry
207 if (_geometry.isValid())
208 Magick::CloneString(&montageInfo_.geometry,_geometry);
209 // gravity
210 montageInfo_.gravity=_gravity;
211 // pointsize
212 montageInfo_.pointsize=_pointSize;
213 // shadow
214 montageInfo_.shadow=static_cast<MagickBooleanType>
215 (_shadow ? MagickTrue : MagickFalse);
216 // signature (validity stamp)
217 montageInfo_.signature=MagickCoreSignature;
218 // stroke
219 montageInfo_.stroke=_stroke;
220 // texture
221 if (_texture.length() != 0)
222 Magick::CloneString(&montageInfo_.texture,_texture);
223 // tile
224 if (_tile.isValid())
225 Magick::CloneString(&montageInfo_.tile,_tile);
226 // title
227 if (_title.length() != 0)
228 Magick::CloneString(&montageInfo_.title,_title);
229}

Member Data Documentation

◆ _backgroundColor

Color Magick::Montage::_backgroundColor
private

Definition at line 100 of file Montage.h.

◆ _fileName

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

Definition at line 101 of file Montage.h.

◆ _fill

Color Magick::Montage::_fill
private

Definition at line 102 of file Montage.h.

◆ _font

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

Definition at line 103 of file Montage.h.

◆ _geometry

Geometry Magick::Montage::_geometry
private

Definition at line 104 of file Montage.h.

◆ _gravity

GravityType Magick::Montage::_gravity
private

Definition at line 105 of file Montage.h.

◆ _label

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

Definition at line 106 of file Montage.h.

◆ _pointSize

size_t Magick::Montage::_pointSize
private

Definition at line 107 of file Montage.h.

◆ _shadow

bool Magick::Montage::_shadow
private

Definition at line 108 of file Montage.h.

◆ _stroke

Color Magick::Montage::_stroke
private

Definition at line 109 of file Montage.h.

◆ _texture

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

Definition at line 110 of file Montage.h.

◆ _tile

Geometry Magick::Montage::_tile
private

Definition at line 111 of file Montage.h.

◆ _title

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

Definition at line 112 of file Montage.h.

◆ _transparentColor

Color Magick::Montage::_transparentColor
private

Definition at line 113 of file Montage.h.


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