Magick++ 7.1.2-32
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
Magick::Montage Class Reference
Inheritance diagram for Magick::Montage:
Magick::MontageFramed

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 19 of file Montage.cpp.

20 : _backgroundColor("#ffffff"),
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_)

Definition at line 41 of file Montage.cpp.

42{
43 _backgroundColor=backgroundColor_;
44}

◆ backgroundColor() [2/2]

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

Definition at line 46 of file Montage.cpp.

47{
48 return(_backgroundColor);
49}

◆ fileName() [1/2]

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

Definition at line 51 of file Montage.cpp.

52{
53 _fileName=fileName_;
54}

◆ fileName() [2/2]

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

Definition at line 56 of file Montage.cpp.

57{
58 return(_fileName);
59}

◆ fillColor() [1/2]

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

Definition at line 61 of file Montage.cpp.

62{
63 _fill=fill_;
64}

◆ fillColor() [2/2]

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

Definition at line 66 of file Montage.cpp.

67{
68 return(_fill);
69}

◆ font() [1/2]

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

Definition at line 71 of file Montage.cpp.

72{
73 _font=font_;
74}

◆ font() [2/2]

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

Definition at line 76 of file Montage.cpp.

77{
78 return(_font);
79}

◆ geometry() [1/2]

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

Definition at line 81 of file Montage.cpp.

82{
83 _geometry=geometry_;
84}

◆ geometry() [2/2]

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

Definition at line 86 of file Montage.cpp.

87{
88 return(_geometry);
89}

◆ gravity()

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

Definition at line 96 of file Montage.cpp.

97{
98 return(_gravity);
99}

◆ label() [1/2]

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

Definition at line 101 of file Montage.cpp.

102{
103 _label=label_;
104}

◆ label() [2/2]

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

Definition at line 106 of file Montage.cpp.

107{
108 return(_label);
109}

◆ pointSize() [1/2]

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

Definition at line 111 of file Montage.cpp.

112{
113 _pointSize=pointSize_;
114}

◆ pointSize() [2/2]

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

Definition at line 116 of file Montage.cpp.

117{
118 return(_pointSize);
119}

◆ shadow() [1/2]

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

Definition at line 121 of file Montage.cpp.

122{
123 _shadow=shadow_;
124}

◆ shadow() [2/2]

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

Definition at line 126 of file Montage.cpp.

127{
128 return(_shadow);
129}

◆ strokeColor() [1/2]

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

Definition at line 131 of file Montage.cpp.

132{
133 _stroke=stroke_;
134}

◆ strokeColor() [2/2]

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

Definition at line 136 of file Montage.cpp.

137{
138 return(_stroke);
139}

◆ texture() [1/2]

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

Definition at line 141 of file Montage.cpp.

142{
143 _texture=texture_;
144}

◆ texture() [2/2]

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

Definition at line 146 of file Montage.cpp.

147{
148 return(_texture);
149}

◆ tile() [1/2]

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

Definition at line 151 of file Montage.cpp.

152{
153 _tile=tile_;
154}

◆ tile() [2/2]

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

Definition at line 156 of file Montage.cpp.

157{
158 return(_tile);
159}

◆ title() [1/2]

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

Definition at line 161 of file Montage.cpp.

162{
163 _title=title_;
164}

◆ title() [2/2]

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

Definition at line 166 of file Montage.cpp.

167{
168 return(_title);
169}

◆ transparentColor() [1/2]

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

Definition at line 171 of file Montage.cpp.

172{
173 _transparentColor=transparentColor_;
174}

◆ transparentColor() [2/2]

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

Definition at line 176 of file Montage.cpp.

177{
178 return(_transparentColor);
179}

◆ updateMontageInfo()

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

Definition at line 181 of file Montage.cpp.

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

Field 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:
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Magick++/Montage.h
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Montage.cpp