File: Montage.html

package info (click to toggle)
imagemagick 8%3A7.1.2.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 86,336 kB
  • sloc: ansic: 373,543; cpp: 22,660; xml: 11,570; sh: 6,618; perl: 6,285; makefile: 3,498; tcl: 459
file content (332 lines) | stat: -rw-r--r-- 14,650 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Magick++ API: Montage</title>
<link rel="stylesheet" href="magick.css" type="text/css" />
</head>
<body>
<div class="doc-section">
<h1 align="center">Magick::Montage Class</h1>
<p>A montage is a single image which is composed of thumbnail images composed in a uniform grid. The size of the montage image is determined by the size of the individual thumbnails and the number of rows and columns in the grid.</p>
<p>The following illustration shows a montage consisting of three columns and two rows of thumbnails rendered on a gray background:</p>
<p class="image"><img src="montage-sample-framed.jpg" name="Graphic1" align="bottom" width="378" height="238" border="0"/></p>
<p>Montages may be either "plain" (undecorated thumbnails) or "framed" (decorated thumbnails). In order to more easily understand the options supplied to <a href="STL.html#montageImages"><i>MontageImages()</i></a>, montage options are supplied by two different classes: <a href="Montage.html#Magick::Montage"><i>Magick::Montage</i></a> and <a href="Montage.html#Magick::MontageFramed"><i>Magick::MontageFramed</i></a>.</p>
<h3 align="center"><a name="PlainMontages"></a>Plain Montages</h3>
<p><a name="Magick::Montage"></a><i>Magick::Montage</i> is the base class to provide montage options and provides methods to set all options required to render simple (unframed) montages. See <a href="Montage.html#Magick::MontageFramed"><i>Magick::MontageFramed</i></a>if you would like to create a framed montage.</p>
<p>Unframed thumbnails consist of four components: the thumbnail image, the thumbnail border, an optional thumbnail shadow, and an optional thumbnail label area.</p>
<p class="image"><img src="thumbnail-anatomy-plain.jpg" name="Graphic2" align="middle" width="309" height="327" border="0"/></p>
<p style="margin-bottom: 0cm"> </p>
<p align="center" style="margin-bottom: 0cm"><b>Montage Methods</b></p>
<ul><table width="100%" border="1" cellpadding="2" cellspacing="2">
<tr>
<td>
<p align="center"><b>Method</b></p></td>
<td>
<p align="center"><b>Return Type</b></p></td>
<td>
<p align="center"><b>Signature(s)</b></p></td>
<td>
<p align="center"><b>Description</b></p></td></tr>
<tr>
<td>
<p align="center"><font size="2">Montage</font></p></td>
<td bgcolor="#666666"></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">Default constructor</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="backgroundColor"></a><font size="2">backgroundColor</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Color.html">Color</a> &amp;backgroundColor_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the background color that thumbnails are imaged upon.</font></p></td></tr>
<tr>
<td>
<p><a href="Color.html"><font size="2">Color</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="compose"></a><font size="2">compose</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2"><a href="https://imagemagick.org/Magick++/Enumerations.html#CompositeOperator">CompositeOperator</a> compose_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the image composition algorithm for thumbnails. This controls the algorithm by which the thumbnail image is placed on the background. Use of OverCompositeOp is recommended for use with images that have transparency. This option may have negative side-effects for images without transparency.</font></p></td></tr>
<tr>
<td>
<p><a href="https://imagemagick.org/Magick++/Enumerations.html#CompositeOperator"><font size="2">CompositeOperator</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="fileName"></a><font size="2">fileName</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const std::string&amp; fileName_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the image filename to be used for the generated montage images. To handle the case were multiple montage images are generated, a <span lang="en-US">printf</span>-style format may be embedded within the filename. For example, a filename specification of image%02d.miff names the montage images as image00.miff, image01.miff, etc.</font></p></td></tr>
<tr>
<td>
<p><font size="2">std::string</font></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="fill"></a>fill</p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Color.html">Color</a> &amp;pen_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the fill color to use for the label text.</font></p></td></tr>
<tr>
<td>
<p><a href="Color.html"><font size="2">Color</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="font"></a><font size="2">font</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const std::string&amp; font_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the thumbnail label font.</font></p></td></tr>
<tr>
<td>
<p><font size="2">std::string</font></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="geometry"></a><font size="2">geometry</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Geometry.html">Geometry</a> &amp;geometry_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the size of the generated thumbnail.</font></p></td></tr>
<tr>
<td>
<p><a href="Geometry.html"><font size="2">Geometry</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="gravity"></a><font size="2">gravity</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2"><a href="https://imagemagick.org/Magick++/Enumerations.html#GravityType">GravityType</a> gravity_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the thumbnail positioning within the specified geometry area. If the thumbnail is smaller in any dimension than the geometry, then it is placed according to this specification.</font></p></td></tr>
<tr>
<td>
<p><a href="https://imagemagick.org/Magick++/Enumerations.html"><font size="2">GravityType</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="label"></a><font size="2">label</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const std::string&amp; label_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the format used for the image label. Special <a href="https://imagemagick.org/Magick++/FormatCharacters.html">format characters</a> may be embedded in the format string to include information about the image.</font></p></td></tr>
<tr>
<td>
<p><font size="2">std::string</font></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="penColor"></a><font size="2">penColor</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Color.html">Color</a> &amp;pen_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the pen color to use for the label text (same as <i>fill</i>).</font></p></td></tr>
<tr>
<td>
<p><a href="Color.html"><font size="2">Color</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="pointSize"></a><font size="2">pointSize</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">size_t pointSize_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the thumbnail label font size.</font></p></td></tr>
<tr>
<td>
<p><font size="2">size_t</font></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="shadow"></a><font size="2">shadow</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">bool shadow_</font></p></td>
<td rowspan="2">
<p><font size="2">Enable/disable drop-shadow on thumbnails.</font></p></td></tr>
<tr>
<td>
<p><font size="2">bool</font></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="stroke"></a><font size="2">stroke</font></p></td>
<td>
<p>void</p></td>
<td>
<p><font size="2">const <a href="Color.html">Color</a> &amp;pen_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the stroke color to use for the label text .</font></p></td></tr>
<tr>
<td>
<p><a href="Color.html"><font size="2">Color</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="texture"></a><font size="2">texture</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const std::string&amp; texture_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies a texture image to use as montage background. The built-in textures "<tt>granite:</tt>" and "<tt>plasma:</tt>" are available. A texture is the same as a background image.</font></p></td></tr>
<tr>
<td>
<p><font size="2">std::string</font></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="tile"></a><font size="2">tile</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Geometry.html">Geometry</a> &amp;tile_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the maximum number of montage columns and rows in the montage. The montage is built by filling out all cells in a row before advancing to the next row. Once the montage has reached the maximum number of columns and rows, a new montage image is started.</font></p></td></tr>
<tr>
<td>
<p><a href="Geometry.html"><font size="2">Geometry</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="transparentColor"></a><font size="2">transparentColor</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Color.html">Color</a> &amp;transparentColor_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies a montage color to set transparent. This option can be set the same as the background color in order for the thumbnails to appear without a background when rendered on an HTML page. For best effect, ensure that the transparent color selected does not occur in the rendered thumbnail colors.</font></p></td></tr>
<tr>
<td>
<p><a href="Color.html"><font size="2">Color</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr></table></ul>
<h3 align="center"><a name="FramedMontages"></a>Framed Montages</h3>
<p><a name="Magick::MontageFramed"></a><i>Magick::MontageFramed</i> provides the means to specify montage options when it is desired to have decorative frames around the image thumbnails. <i>MontageFramed</i> inherits from <i>Montage</i> and therefore provides all the methods of <i>Montage</i> as well as those shown in the table "MontageFramed Methods".</p>
<p>Framed thumbnails consist of four components: the thumbnail image, the thumbnail frame, the thumbnail border, an optional thumbnail shadow, and an optional thumbnail label area.</p>
<p class="image"><img src="thumbnail-anatomy-framed.jpg" name="Graphic3" align="middle" width="350" height="345" border="0" /></p>
<p style="margin-bottom: 0cm"> </p>
<p align="center" style="margin-bottom: 0cm"><b>MontageFramed Methods</b></p>
<ul><table width="100%" border="1" cellpadding="2" cellspacing="2">
<tr>
<td>
<p align="center"><b>Method</b></p></td>
<td>
<p align="center"><b>Return Type</b></p></td>
<td>
<p align="center"><b>Signature(s)</b></p></td>
<td>
<p align="center"><b>Description</b></p></td></tr>
<tr>
<td>
<p align="center"><font size="2">MontageFramed</font></p></td>
<td bgcolor="#666666"></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">Default constructor (enable frame via <i>frameGeometry</i>).</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="borderColor"></a><font size="2">borderColor</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Color.html">Color</a> &amp;borderColor_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the background color within the thumbnail frame.</font></p></td></tr>
<tr>
<td>
<p><a href="Color.html"><font size="2">Color</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="borderWidth"></a><font size="2">borderWidth</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">size_t borderWidth_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the border (in pixels) to place between a thumbnail and its surrounding frame. This option only takes effect if thumbnail frames are enabled (via <i>frameGeometry</i>) and the thumbnail geometry specification doesn't also specify the thumbnail border width.</font></p></td></tr>
<tr>
<td>
<p><font size="2">size_t</font></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="frameGeometry"></a><font size="2">frameGeometry</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Geometry.html">Geometry</a> &amp;frame_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the geometry specification for frame to place around thumbnail. If this parameter is not specified, then the montage is unframed.</font></p></td></tr>
<tr>
<td>
<p><a href="Geometry.html"><font size="2">Geometry</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr>
<tr>
<td rowspan="2">
<p align="center"><a name="matteColor"></a><font size="2">matteColor</font></p></td>
<td>
<p><font size="2">void</font></p></td>
<td>
<p><font size="2">const <a href="Color.html">Color</a> &amp;matteColor_</font></p></td>
<td rowspan="2">
<p><font size="2">Specifies the thumbnail frame color.</font></p></td></tr>
<tr>
<td>
<p><a href="Color.html"><font size="2">Color</font></a></p></td>
<td>
<p><font size="2">void</font></p></td></tr></table></ul>
</div>
</body>
</html>