rmagick 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rmagick might be problematic. Click here for more details.

Files changed (54) hide show
  1. data/ChangeLog +9 -0
  2. data/README.html +13 -13
  3. data/README.txt +11 -11
  4. data/doc/comtasks.html +25 -4
  5. data/doc/constants.html +8 -8
  6. data/doc/draw.html +112 -116
  7. data/doc/ex/axes.rb +1 -1
  8. data/doc/ex/clip_path.rb +5 -4
  9. data/doc/ex/get_type_metrics.rb +2 -2
  10. data/doc/ex/resize_to_fill.rb +10 -0
  11. data/doc/ex/{crop_resized.rb → resize_to_fit.rb} +2 -2
  12. data/doc/ilist.html +79 -82
  13. data/doc/image1.html +213 -322
  14. data/doc/image2.html +123 -136
  15. data/doc/image3.html +340 -198
  16. data/doc/imageattrs.html +211 -192
  17. data/doc/imusage.html +6 -7
  18. data/doc/index.html +9 -16
  19. data/doc/info.html +90 -61
  20. data/doc/magick.html +6 -6
  21. data/doc/optequiv.html +26 -13
  22. data/doc/rvg.html +22 -23
  23. data/doc/rvgclip.html +15 -16
  24. data/doc/rvggroup.html +23 -23
  25. data/doc/rvgimage.html +18 -19
  26. data/doc/rvgpattern.html +101 -82
  27. data/doc/rvgshape.html +14 -21
  28. data/doc/rvgstyle.html +4 -4
  29. data/doc/rvgtext.html +10 -9
  30. data/doc/rvgtspan.html +12 -11
  31. data/doc/rvgtut.html +4 -4
  32. data/doc/rvguse.html +4 -4
  33. data/doc/rvgxform.html +9 -9
  34. data/doc/struct.html +193 -195
  35. data/doc/usage.html +12 -10
  36. data/examples/constitute.rb +7 -0
  37. data/ext/RMagick/MANIFEST +4 -4
  38. data/ext/RMagick/extconf.rb +54 -42
  39. data/ext/RMagick/rmagick.h +34 -11
  40. data/ext/RMagick/rmdraw.c +6 -6
  41. data/ext/RMagick/rmfill.c +2 -2
  42. data/ext/RMagick/rmilist.c +9 -9
  43. data/ext/RMagick/rmimage.c +110 -106
  44. data/ext/RMagick/rminfo.c +33 -14
  45. data/ext/RMagick/rmmain.c +11 -21
  46. data/ext/RMagick/rmutil.c +51 -11
  47. data/lib/RMagick.rb +25 -18
  48. data/post-clean.rb +3 -3
  49. data/post-install.rb +4 -5
  50. data/rmagick.gemspec +5 -3
  51. data/uninstall.rb +6 -6
  52. metadata +7 -7
  53. data/doc/ex/Adispatch.rb +0 -43
  54. data/doc/ex/Zconstitute.rb +0 -9
data/doc/rvgimage.html CHANGED
@@ -4,9 +4,9 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml">
5
5
  <head>
6
6
  <meta name="generator" content=
7
- "HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.0.0: RVG Reference: RVG::Image Class</title>
9
+ <title>RMagick 2.1.0: RVG Reference: RVG::Image Class</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -27,7 +27,7 @@
27
27
  </head>
28
28
 
29
29
  <body>
30
- <h6 id="header">RMagick 2.0.0 User's Guide and Reference</h6>
30
+ <h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
31
31
 
32
32
  <div class="nav">
33
33
  &laquo;&nbsp;<a href="rvggroup.html">Prev</a> | <a href=
@@ -81,7 +81,7 @@
81
81
  "arg">raster_image</span>, <span class="arg">width</span>=nil,
82
82
  <span class="arg">height</span>=nil, <span class=
83
83
  "arg">x</span>=0, <span class="arg">y</span>=0) -&gt;
84
- <span class="arg">anImage</span></p>
84
+ <em>image</em></p>
85
85
  </div>
86
86
 
87
87
  <div class="desc">
@@ -124,10 +124,10 @@
124
124
  <div class="sig">
125
125
  <h3 id="desc">desc, desc=</h3>
126
126
 
127
- <p><span class="arg">image</span>.desc -&gt; <span class=
128
- "arg">aString</span><br />
129
- <span class="arg">image</span>.desc = <span class=
130
- "arg">aString</span></p>
127
+ <p><span class="arg">img</span>.desc -&gt;
128
+ <em>string</em><br />
129
+ <span class="arg">img</span>.desc = <span class=
130
+ "arg">string</span></p>
131
131
  </div>
132
132
 
133
133
  <div class="desc">
@@ -138,10 +138,10 @@
138
138
  <div class="sig">
139
139
  <h3 id="metadata">metadata, metadata=</h3>
140
140
 
141
- <p><span class="arg">image</span>.metadata -&gt; <span class=
142
- "arg">aString</span><br />
143
- <span class="arg">image</span>.metadata = <span class=
144
- "arg">aString</span></p>
141
+ <p><span class="arg">img</span>.metadata -&gt;
142
+ <em>string</em><br />
143
+ <span class="arg">img</span>.metadata = <span class=
144
+ "arg">string</span></p>
145
145
  </div>
146
146
 
147
147
  <div class="desc">
@@ -152,10 +152,10 @@
152
152
  <div class="sig">
153
153
  <h3 id="RVG_title">title, title=</h3>
154
154
 
155
- <p><span class="arg">image</span>.title -&gt; <span class=
156
- "arg">aString</span><br />
157
- <span class="arg">image</span>.title = <span class=
158
- "arg">aString</span></p>
155
+ <p><span class="arg">img</span>.title -&gt;
156
+ <em>string</em><br />
157
+ <span class="arg">img</span>.title = <span class=
158
+ "arg">string</span></p>
159
159
  </div>
160
160
 
161
161
  <div class="desc">
@@ -169,10 +169,9 @@
169
169
  <h3 id="preserve_aspect_ratio">preserve_aspect_ratio</h3>
170
170
 
171
171
  <p><span class=
172
- "arg">image</span>.preserve_aspect_ratio(<span class=
172
+ "arg">img</span>.preserve_aspect_ratio(<span class=
173
173
  "arg">align</span>, <span class=
174
- "arg">meet_or_slice</span>='meet') -&gt; <span class=
175
- "arg">self</span></p>
174
+ "arg">meet_or_slice</span>='meet') -&gt; <em>self</em></p>
176
175
  </div>
177
176
 
178
177
  <div class="desc">
data/doc/rvgpattern.html CHANGED
@@ -4,9 +4,9 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml">
5
5
  <head>
6
6
  <meta name="generator" content=
7
- "HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.0.0: RVG Reference: RVG::Pattern Class</title>
9
+ <title>RMagick 2.1.0: RVG Reference: RVG::Pattern Class</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -27,7 +27,7 @@
27
27
  </head>
28
28
 
29
29
  <body>
30
- <h6 id="header">RMagick 2.0.0 User's Guide and Reference</h6>
30
+ <h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
31
31
 
32
32
  <div class="nav">
33
33
  &laquo;&nbsp;<a href="rvgimage.html">Prev</a> | <a href=
@@ -35,9 +35,10 @@
35
35
  "rvgclip.html">Next</a>&nbsp;&raquo;
36
36
  </div>
37
37
 
38
- <h1>class RVG::Pattern <span class="superclass">&lt; Object</span></h1>
38
+ <h1>class RVG::Pattern <span class="superclass">&lt;
39
+ Object</span></h1>
39
40
 
40
- <div id="toc">
41
+ <div id="toc">
41
42
  <h2>Table of Contents</h2>
42
43
 
43
44
  <h3>class methods</h3>
@@ -47,11 +48,14 @@
47
48
  </ul>
48
49
 
49
50
  <h3>instance methods</h3>
50
- <div>
51
+
52
+ <div>
51
53
  <div class="toccol">
52
54
  <ul>
53
55
  <li><a href="#g">g</a></li>
56
+
54
57
  <li><a href="#image">image</a></li>
58
+
55
59
  <li><a href=
56
60
  "#preserve_aspect_ratio">preserve_aspect_ratio</a></li>
57
61
  </ul>
@@ -59,7 +63,6 @@
59
63
 
60
64
  <div class="toccol">
61
65
  <ul>
62
-
63
66
  <li><a href="#rvg">rvg</a></li>
64
67
 
65
68
  <li><a href="#RVG_text">text</a></li>
@@ -77,61 +80,75 @@
77
80
 
78
81
  <h3>shared methods</h3>
79
82
 
80
- <p> <p>In addition to the methods listed above, this class
81
- also implements the <a href=
82
- "rvgstyle.html">styles</a> method, the <a href=
83
- "rvgshape.html">shape methods</a> and the <a href=
84
- "rvgxform.html">transform methods</a>.</p></p>
83
+ <p>In addition to the methods listed above, this class also
84
+ implements the <a href="rvgstyle.html">styles</a> method, the
85
+ <a href="rvgshape.html">shape methods</a> and the <a href=
86
+ "rvgxform.html">transform methods</a>.</p>
85
87
  </div>
86
88
 
87
89
  <h2 class="methods">class methods</h2>
90
+
88
91
  <div class="sig">
89
92
  <h3 id="new">new</h3>
90
93
 
91
- <p>RVG::Pattern.new(<span class="arg">width</span>=0, <span class="arg">height</span>=0, <span class="arg">x</span>=0, <span class="arg">y</span>=0) [ <span class="arg">{ |pattern| drawing
92
- method calls }</span> ] -&gt; aPattern</p>
94
+ <p>RVG::Pattern.new(<span class="arg">width</span>=0,
95
+ <span class="arg">height</span>=0, <span class=
96
+ "arg">x</span>=0, <span class="arg">y</span>=0) [ <span class=
97
+ "arg">{ |pattern| drawing method calls }</span> ] -&gt;
98
+ <em>pattern</em></p>
93
99
  </div>
94
100
 
95
101
  <div class="desc">
96
102
  <h4>Description</h4>
97
103
 
98
- <p>Creates a pattern that can be used with the <code>:fill</code> and <code>:stroke</code> styles.</p>
99
- <p>Define the pattern in the associated block. The pattern can be composed of <a href="rvgshape.html">shapes</a>,
100
- <a href="rvgtext.html#new">text</a>, <a href="rvgimage.html#new">raster images</a>, <a href="rvggroup.html#new">groups</a>, and <a href="rvg.html#RVG_new">RVG objects</a>.
101
- You can use the <a href="rvguse.html#new">use</a> method to include graphic objects in the pattern.</p>
104
+ <p>Creates a pattern that can be used with the
105
+ <code>:fill</code> and <code>:stroke</code> styles.</p>
106
+
107
+ <p>Define the pattern in the associated block. The pattern can
108
+ be composed of <a href="rvgshape.html">shapes</a>, <a href=
109
+ "rvgtext.html#new">text</a>, <a href="rvgimage.html#new">raster
110
+ images</a>, <a href="rvggroup.html#new">groups</a>, and
111
+ <a href="rvg.html#RVG_new">RVG objects</a>. You can use the
112
+ <a href="rvguse.html#new">use</a> method to include graphic
113
+ objects in the pattern.</p>
102
114
 
103
115
  <h4>Arguments</h4>
116
+
104
117
  <dl>
105
- <dt>width, height</dt>
106
- <dd>These arguments define the pattern viewport.</dd>
107
- <dt>x, y</dt>
108
- <dd>Specify the starting offset of the pattern. The pattern will be repeated at <span class="arg">x</span><code>+m*width</code> and <span class="arg">y</span><code>+n*height</code> offsets.</dd>
118
+ <dt>width, height</dt>
119
+
120
+ <dd>These arguments define the pattern viewport.</dd>
121
+
122
+ <dt>x, y</dt>
123
+
124
+ <dd>Specify the starting offset of the pattern. The pattern
125
+ will be repeated at <span class=
126
+ "arg">x</span><code>+m*width</code> and <span class=
127
+ "arg">y</span><code>+n*height</code> offsets.</dd>
109
128
  </dl>
110
129
 
111
130
  <h4>Example</h4>
112
- <p><a href=
113
- "javascript:popup('rvg_pattern.rb.html')"><img src="ex/rvg_pattern.gif"
114
- title="Click to see the example script" alt=
115
- "pattern example" /></a></p>
116
131
 
132
+ <p><a href="javascript:popup('rvg_pattern.rb.html')"><img src=
133
+ "ex/rvg_pattern.gif" title="Click to see the example script"
134
+ alt="pattern example" /></a></p>
117
135
  </div>
118
136
 
119
137
  <h2 class="methods">instance methods</h2>
138
+
120
139
  <div class="sig">
121
140
  <h3 id='g'>g</h3>
122
141
 
123
142
  <p><span class="arg">pattern.</span>g [{|<span class=
124
- "arg">grp</span>| ...}] -&gt; <span class=
125
- "arg">aGroup</span></p>
143
+ "arg">grp</span>| ...}] -&gt; <em>group</em></p>
126
144
  </div>
127
145
 
128
146
  <div class="desc">
129
147
  <h4>Description</h4>
130
148
 
131
149
  <p>Calls <a href="rvggroup.html#new">RVG::Group.new</a> to
132
- construct a group and adds it to the pattern.
133
- Yields to a block if one is present, passing the new group as
134
- an argument.</p>
150
+ construct a group and adds it to the pattern. Yields to a block
151
+ if one is present, passing the new group as an argument.</p>
135
152
 
136
153
  <h4>Returns</h4>
137
154
 
@@ -146,7 +163,7 @@
146
163
  "arg">raster_image</span>, <span class="arg">width</span>=nil,
147
164
  <span class="arg">height</span>=nil, <span class=
148
165
  "arg">x</span>=0, <span class="arg">y</span>=0) -&gt;
149
- <span class="arg">anImage</span></p>
166
+ <em>image</em></p>
150
167
  </div>
151
168
 
152
169
  <div class="desc">
@@ -159,7 +176,6 @@
159
176
 
160
177
  <p>Returns the new image, so <code>RVG::Image</code> methods
161
178
  can be chained to this method.</p>
162
-
163
179
  </div>
164
180
 
165
181
  <div class="sig">
@@ -169,19 +185,18 @@
169
185
  "arg">pattern</span>.preserve_aspect_ratio(<span class=
170
186
  "arg">align</span>, <span class=
171
187
  "arg">meet_or_slice</span>='meet') [{|<span class=
172
- "arg">self</span>| ...}] -&gt; <span class=
173
- "arg">self</span></p>
188
+ "arg">self</span>| ...}] -&gt; <em>self</em></p>
174
189
  </div>
175
190
 
176
191
  <div class="desc">
177
192
  <h4>Description</h4>
178
193
 
179
- <p>If you use the <a href="#viewbox">viewbox</a> method and
180
- the user coordinate system does not scale uniformly to the
181
- default coordinate system,
182
- use the <code>preserve_aspect_ratio</code> method to specify
183
- whether or not the content is stretched to fit. If not, you can
184
- specify how to fit the content into the space.</p>
194
+ <p>If you use the <a href="#viewbox">viewbox</a> method and the
195
+ user coordinate system does not scale uniformly to the default
196
+ coordinate system, use the <code>preserve_aspect_ratio</code>
197
+ method to specify whether or not the content is stretched to
198
+ fit. If not, you can specify how to fit the content into the
199
+ space.</p>
185
200
 
186
201
  <p><code>Preserve_aspect_ratio</code> yields to a block if one
187
202
  is present, passing <span class="arg">self</span> as an
@@ -270,12 +285,14 @@
270
285
 
271
286
  <h4>Example</h4>
272
287
 
273
- <p>See the RVG class <a href="rvg.html#RVG_preserve_aspect_ratio">example</a>.</p>
288
+ <p>See the RVG class <a href=
289
+ "rvg.html#RVG_preserve_aspect_ratio">example</a>.</p>
274
290
 
275
291
  <h4>Returns</h4>
276
292
 
277
- <p><span class="arg">Self</span>, so other <code>RVG::Pattern</code>
278
- methods can be chained to this method.</p>
293
+ <p><span class="arg">Self</span>, so other
294
+ <code>RVG::Pattern</code> methods can be chained to this
295
+ method.</p>
279
296
 
280
297
  <h4>See Also</h4>
281
298
 
@@ -288,16 +305,16 @@
288
305
  <p><span class="arg">pattern</span>.rvg(<span class=
289
306
  "arg">width</span>, <span class="arg">height</span>,
290
307
  <span class="arg">x</span>=0, <span class="arg">y</span>=0)
291
- [{|<span class="arg">new_rvg</span>| ...}] -&gt; <span class=
292
- "arg">aPattern</span></p>
308
+ [{|<span class="arg">new_rvg</span>| ...}] -&gt;
309
+ <em>pattern</em></p>
293
310
  </div>
294
311
 
295
312
  <div class="desc">
296
313
  <h4>Description</h4>
297
314
 
298
315
  <p>This method constructs a new RVG object and adds it to the
299
- pattern. Each nested RVG object can use the
300
- <a href="rvg.html#RVG_viewbox">viewbox</a> method to define its own
316
+ pattern. Each nested RVG object can use the <a href=
317
+ "rvg.html#RVG_viewbox">viewbox</a> method to define its own
301
318
  coordinate system. The <code>rvg</code> method yields to a
302
319
  block, passing the nested RVG object as an argument. Within the
303
320
  block, any drawing objects added to the nested RVG object are
@@ -321,8 +338,8 @@
321
338
  <h4>Example</h4>
322
339
 
323
340
  <p>See the example for <a href=
324
- "#RVG_preserve_aspect_ratio">preserve_aspect_ratio</a>
325
- in <code>class RVG</code>.</p>
341
+ "#RVG_preserve_aspect_ratio">preserve_aspect_ratio</a> in
342
+ <code>class RVG</code>.</p>
326
343
 
327
344
  <h4>Returns</h4>
328
345
 
@@ -335,16 +352,17 @@
335
352
 
336
353
  <p><span class="arg">pattern.</span>text(<span class=
337
354
  "arg">x</span>=0, <span class="arg">y</span>=0, <span class=
338
- "arg">text</span>=nil) [{|<span class="arg">aText</span>| ...}]
339
- -&gt; <span class="arg">aText</span></p>
355
+ "arg">text</span>=nil) [{|<span class="arg">text</span>| ...}]
356
+ -&gt; <em>text</em></p>
340
357
  </div>
341
358
 
342
359
  <div class="desc">
343
360
  <h4>Description</h4>
344
361
 
345
362
  <p>Calls <a href="rvgtext.html#new">RVG::Text.new</a> to
346
- construct a text object and adds it to the pattern. Yields to a block if one is present, passing the new
347
- text object as an argument.</p>
363
+ construct a text object and adds it to the pattern. Yields to a
364
+ block if one is present, passing the new text object as an
365
+ argument.</p>
348
366
 
349
367
  <h4>Returns</h4>
350
368
 
@@ -359,24 +377,23 @@
359
377
  <p><span class="arg">pattern</span>.use(<span class=
360
378
  "arg">obj</span>, <span class="arg">x</span>=0, <span class=
361
379
  "arg">y</span>=0, <span class="arg">width</span>=nil,
362
- <span class="arg">height</span>=nil) -&gt; <span class=
363
- "arg">aUse</span></p>
380
+ <span class="arg">height</span>=nil) -&gt; <em>use</em></p>
364
381
  </div>
365
382
 
366
383
  <div class="desc">
367
384
  <h4>Description</h4>
368
385
 
369
386
  <p>Calls <a href="rvguse.html#new">RVG::Use.new</a> to
370
- constructs a <code>use</code> object and adds it to the pattern.</p>
387
+ constructs a <code>use</code> object and adds it to the
388
+ pattern.</p>
371
389
 
372
- <p>When the referenced argument is an RVG object,
373
- <span class="arg">width</span> and <span class=
374
- "arg">height</span> can be used to specify the width and height
375
- of the viewport. If present and non-nil, these arguments
376
- override any width and height specified when the RVG object was
377
- created. You must specify the viewport size either when
378
- creating the RVG object or when referencing it with
379
- <code>use</code>.</p>
390
+ <p>When the referenced argument is an RVG object, <span class=
391
+ "arg">width</span> and <span class="arg">height</span> can be
392
+ used to specify the width and height of the viewport. If
393
+ present and non-nil, these arguments override any width and
394
+ height specified when the RVG object was created. You must
395
+ specify the viewport size either when creating the RVG object
396
+ or when referencing it with <code>use</code>.</p>
380
397
 
381
398
  <h4>Examples</h4>
382
399
 
@@ -392,20 +409,22 @@
392
409
  <div class="sig">
393
410
  <h3 id="viewbox">viewbox</h3>
394
411
 
395
- <p><span class="arg">pattern</span>.viewbox(<span class="arg">min_x</span>, <span class=
396
- "arg">min_y</span>, <span class="arg">width</span>,
397
- <span class="arg">height</span>) [{|<span class=
398
- "arg">self</span>| ...}] -&gt; <span class="arg">rvg</span></p>
412
+ <p><span class="arg">pattern</span>.viewbox(<span class=
413
+ "arg">min_x</span>, <span class="arg">min_y</span>,
414
+ <span class="arg">width</span>, <span class=
415
+ "arg">height</span>) [{|<span class="arg">self</span>| ...}]
416
+ -&gt; <em>self</em></p>
399
417
  </div>
400
418
 
401
419
  <div class="desc">
402
420
  <h4>Description</h4>
403
421
 
404
- <p>The area of the pattern is called the <em>viewport</em>.
405
- By default the origin of the coordinate system for an pattern is (0,0). The user coordinates are pixels and the width
406
- and height are established by the <span class=
407
- "arg">width</span> and <span class="arg">height</span>
408
- arguments to <code>RVG::Pattern.new</code>.</p>
422
+ <p>The area of the pattern is called the <em>viewport</em>. By
423
+ default the origin of the coordinate system for an pattern is
424
+ (0,0). The user coordinates are pixels and the width and height
425
+ are established by the <span class="arg">width</span> and
426
+ <span class="arg">height</span> arguments to
427
+ <code>RVG::Pattern.new</code>.</p>
409
428
 
410
429
  <p>Use the <code>viewbox</code> method to superimpose a user
411
430
  coordinate system on the viewport. The <code>viewbox</code>
@@ -430,12 +449,14 @@
430
449
 
431
450
  <h4>Example</h4>
432
451
 
433
- <p>See the <a href="rvg.html#RVG_viewbox">example</a> for the <code>RVG </code>class.</p>
452
+ <p>See the <a href="rvg.html#RVG_viewbox">example</a> for the
453
+ <code>RVG</code> class.</p>
434
454
 
435
455
  <h4>Returns</h4>
436
456
 
437
- <p><span class="arg">Self</span>, so other <code>RVG::Pattern</code>
438
- methods may be chained to <code>viewbox</code>.</p>
457
+ <p><span class="arg">Self</span>, so other
458
+ <code>RVG::Pattern</code> methods may be chained to
459
+ <code>viewbox</code>.</p>
439
460
 
440
461
  <h4>See Also</h4>
441
462
 
@@ -443,14 +464,12 @@
443
464
  "#preserve_aspect_ratio">preserve_aspect_ratio</a></p>
444
465
  </div>
445
466
 
446
-
447
-
448
- <p class="spacer">&nbsp;</p>
467
+ <p class="spacer">&nbsp;</p>
449
468
 
450
469
  <div class="nav">
451
470
  &laquo;&nbsp;<a href="rvgimage.html">Prev</a> | <a href=
452
471
  "index.html">Contents</a> | <a href=
453
472
  "rvgclip.html">Next</a>&nbsp;&raquo;
454
473
  </div>
455
- </body>
456
- </html>
474
+ </body>
475
+ </html>