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/image1.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.0.0: class Image (class methods and instance
9
+ <title>RMagick 2.1.0: class Image (class methods and instance
10
10
  methods a-d)</title>
11
11
  <meta http-equiv="Content-Type" content=
12
12
  "text/html; charset=us-ascii" />
@@ -48,7 +48,7 @@ float: left;
48
48
  </head>
49
49
 
50
50
  <body>
51
- <h6 id="header">RMagick 2.0.0 User's Guide and Reference</h6>
51
+ <h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
52
52
 
53
53
  <div class="nav">
54
54
  &laquo;&nbsp;<a href="imageattrs.html">Prev</a> | <a href=
@@ -147,13 +147,13 @@ float: left;
147
147
  <li><a href="#blur_image">blur_image</a></li>
148
148
 
149
149
  <li><a href="#border">border</a></li>
150
-
151
- <li><a href="#border_bang">border!</a></li>
152
150
  </ul>
153
151
  </div>
154
152
 
155
153
  <div class="toccol">
156
154
  <ul>
155
+ <li><a href="#border_bang">border!</a></li>
156
+
157
157
  <li><a href="#change_geometry">change_geometry</a></li>
158
158
 
159
159
  <li><a href="#changed_q">changed?</a></li>
@@ -196,16 +196,16 @@ float: left;
196
196
  <li><a href="#composite">composite</a></li>
197
197
 
198
198
  <li><a href="#composite_bang">composite!</a></li>
199
+ </ul>
200
+ </div>
199
201
 
202
+ <div class="toccol">
203
+ <ul>
200
204
  <li><a href="#composite_affine">composite_affine</a></li>
201
205
 
202
206
  <li><a href=
203
207
  "#compress_colormap_bang">compress_colormap!</a></li>
204
- </ul>
205
- </div>
206
208
 
207
- <div class="toccol">
208
- <ul>
209
209
  <li><a href="#contrast">contrast</a></li>
210
210
 
211
211
  <li><a href=
@@ -223,8 +223,6 @@ float: left;
223
223
 
224
224
  <li><a href="#crop_resized">crop_resized</a></li>
225
225
 
226
- <li><a href="#crop_resized_bang">crop_resized!</a></li>
227
-
228
226
  <li><a href="#cycle_colormap">cycle_colormap</a></li>
229
227
 
230
228
  <li><a href="#delete_profile">delete_profile</a></li>
@@ -268,7 +266,7 @@ float: left;
268
266
  "arg">screen=</span><code>false</code>, <span class=
269
267
  "arg">borders=</span><code>false</code>) [ <span class=
270
268
  "arg">{&nbsp;optional arguments&nbsp;}</span> ] -&gt;
271
- <em>anImage</em></p>
269
+ <em>image</em></p>
272
270
  </div>
273
271
 
274
272
  <div class="desc">
@@ -337,7 +335,7 @@ float: left;
337
335
 
338
336
  <h4>Example</h4>
339
337
  <pre>
340
- img = Magick::Image.capture {
338
+ img = Image.capture {
341
339
  self.filename = "root"
342
340
  }
343
341
  </pre>
@@ -346,10 +344,10 @@ img = Magick::Image.capture {
346
344
  <div class="sig">
347
345
  <h3 id="combine">combine</h3>
348
346
 
349
- <p>Image.combine(<span class="arg">red_ch</span>=nil[,
350
- <span class="arg">green_ch</span>=nil[, <span class=
351
- "arg">blue_ch</span>=nil[<span class="arg">,
352
- opacity_ch</span>=nil]]]) -&gt;<em>anImage</em></p>
347
+ <p>Image.combine(<span class="arg">red_ch</span>=nil,
348
+ <span class="arg">green_ch</span>=nil, <span class=
349
+ "arg">blue_ch</span>=nil<span class="arg">,
350
+ opacity_ch</span>=nil) -&gt;<em>image</em></p>
353
351
  </div>
354
352
 
355
353
  <div class="desc">
@@ -394,7 +392,7 @@ img = Magick::Image.capture {
394
392
 
395
393
  <p>Image.constitute(<span class="arg">width</span>,
396
394
  <span class="arg">height</span>, <span class="arg">map</span>,
397
- <span class="arg">pixels</span>) -&gt; <em>anImage</em></p>
395
+ <span class="arg">pixels</span>) -&gt; <em>image</em></p>
398
396
  </div>
399
397
 
400
398
  <div class="desc">
@@ -437,10 +435,10 @@ img = Magick::Image.capture {
437
435
 
438
436
  <p>An image constructed from the pixel data.</p>
439
437
 
440
- <h4>Example</h4><a href=
441
- "javascript:popup('Zconstitute.rb.html')"><img src=
442
- "ex/constitute.jpg" title="Click to see the example script"
443
- alt="constitute example" /></a>
438
+ <h4>Example</h4>
439
+ <pre>
440
+ image = Image.constitute(width, height, "RGB", pixels)
441
+ </pre>
444
442
 
445
443
  <h4>See also</h4>
446
444
 
@@ -457,9 +455,9 @@ img = Magick::Image.capture {
457
455
  <div class="sig">
458
456
  <h3 id="from_blob">from_blob</h3>
459
457
 
460
- <p>Image.from_blob(<span class="arg">aString</span>) [
458
+ <p>Image.from_blob(<span class="arg">string</span>) [
461
459
  <span class="arg">{ optional arguments }</span> ] -&gt;
462
- <em>anArray</em></p>
460
+ <em>array</em></p>
463
461
  </div>
464
462
 
465
463
  <div class="desc">
@@ -501,7 +499,7 @@ img = Magick::Image.capture {
501
499
  <p>Image.new(<span class="arg">columns</span>, <span class=
502
500
  "arg">rows</span> [, <span class="arg">fill</span>]) [
503
501
  <span class="arg">{ optional arguments }</span> ] -&gt;
504
- <em>anImage</em></p>
502
+ <em>image</em></p>
505
503
  </div>
506
504
 
507
505
  <div class="desc">
@@ -535,7 +533,7 @@ img = Magick::Image.capture {
535
533
 
536
534
  <h4>Example</h4>
537
535
  <pre>
538
- img = Magick::Image.new(256, 64) {
536
+ img = Image.new(256, 64) {
539
537
  self.background_color = 'red'
540
538
  }
541
539
  </pre>
@@ -555,9 +553,9 @@ img = Magick::Image.new(256, 64) {
555
553
 
556
554
  <p>Image.ping(<span class="arg">filename</span>) [ <span class=
557
555
  "arg">{ optional arguments }</span> ] -&gt;
558
- <em>anArray</em><br />
556
+ <em>array</em><br />
559
557
  Image.ping(<span class="arg">file</span>) [ <span class="arg">{
560
- optional arguments }</span> ] -&gt; <em>anArray</em></p>
558
+ optional arguments }</span> ] -&gt; <em>array</em></p>
561
559
  </div>
562
560
 
563
561
  <div class="desc">
@@ -580,7 +578,7 @@ img = Magick::Image.new(256, 64) {
580
578
 
581
579
  <h4>Example</h4>
582
580
  <pre>
583
- cheetah = Magick::Image.ping("Cheetah.jpg") &raquo;
581
+ cheetah = Image.ping("Cheetah.jpg") &raquo;
584
582
  [Cheetah.jpg JPEG 1024x768 DirectClass 8-bit 101684b]
585
583
  p cheetah[0].rows &raquo; 768
586
584
  p cheetah[0].columns &raquo; 1024
@@ -600,9 +598,9 @@ p cheetah[0].columns &raquo; 1024
600
598
 
601
599
  <p>Image.read(<span class="arg">filename</span>) [ <span class=
602
600
  "arg">{ optional arguments }</span> ] -&gt;
603
- <em>anArray</em><br />
601
+ <em>array</em><br />
604
602
  Image.read(<span class="arg">file</span>) [ <span class="arg">{
605
- optional arguments }</span> ] -&gt; <em>anArray</em></p>
603
+ optional arguments }</span> ] -&gt; <em>array</em></p>
606
604
  </div>
607
605
 
608
606
  <div class="desc">
@@ -631,7 +629,7 @@ p cheetah[0].columns &raquo; 1024
631
629
 
632
630
  <h4>Example</h4>
633
631
  <pre>
634
- animated = Magick::Image.read("animated.gif") &raquo;
632
+ animated = Image.read("animated.gif") &raquo;
635
633
  [animated.gif GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b
636
634
  animated.gif[1] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b,
637
635
  animated.gif[2] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b]
@@ -657,7 +655,7 @@ animated.gif[2] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b]
657
655
 
658
656
  <p>Image.read_inline(<span class="arg">content</span>) [
659
657
  <span class="arg">{ optional arguments }</span> ] -&gt;
660
- <em>anArray</em></p>
658
+ <em>array</em></p>
661
659
  </div>
662
660
 
663
661
  <div class="desc">
@@ -684,7 +682,7 @@ animated.gif[2] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b]
684
682
  <h4>Example</h4>
685
683
  <pre>
686
684
  content = "R0lGODlhnAEuAferAAAAAAcIBggJBgw..."
687
- img = Magick::Image.read_inline(content)
685
+ img = Image.read_inline(content)
688
686
  </pre>
689
687
 
690
688
  <h4>See also</h4>
@@ -697,8 +695,8 @@ img = Magick::Image.read_inline(content)
697
695
  <div class="sig">
698
696
  <h3 id="aref">[&nbsp;]</h3>
699
697
 
700
- <p>image[<span class="arg">key</span>] -&gt;
701
- <em>aString</em></p>
698
+ <p><span class="arg">img</span>[<span class="arg">key</span>]
699
+ -&gt; <em>string</em></p>
702
700
  </div>
703
701
 
704
702
  <div class="desc">
@@ -744,8 +742,8 @@ img = Magick::Image.read_inline(content)
744
742
  <div class="sig">
745
743
  <h3 id="aset">[&nbsp;]=</h3>
746
744
 
747
- <p>image[<span class="arg">key</span>] = <span class=
748
- "arg">aString</span> -&gt; <em>image</em></p>
745
+ <p><span class="arg">img</span>[<span class="arg">key</span>] =
746
+ <span class="arg">string</span> -&gt; <em>self</em></p>
749
747
  </div>
750
748
 
751
749
  <div class="desc">
@@ -776,19 +774,19 @@ img = Magick::Image.read_inline(content)
776
774
  <div class="sig">
777
775
  <h3 id="spaceship">&lt;=&gt;</h3>
778
776
 
779
- <p><span class="arg">image</span> &lt;=&gt; <span class=
780
- "arg">anOtherImage</span> -&gt; -1, 0, 1</p>
777
+ <p><span class="arg">img</span> &lt;=&gt; <span class=
778
+ "arg">other_image</span> -&gt; -1, 0, 1</p>
781
779
  </div>
782
780
 
783
781
  <div class="desc">
784
782
  <h4>Description</h4>
785
783
 
786
784
  <p>Compares two images and returns -1, 0, or 1 if <span class=
787
- "arg">image</span> is less than, equal to, or greater than
788
- <span class="arg">anOtherImage</span> as determined by
789
- comparing the signatures of the images. If one of the arguments
790
- is not an image, this method raises a TypeError exception (in
791
- Ruby 1.6) or returns <code>nil</code> (in Ruby 1.8)</p>
785
+ "arg">img</span> is less than, equal to, or greater than
786
+ <span class="arg">other_image</span> as determined by comparing
787
+ the signatures of the images. If one of the arguments is not an
788
+ image, this method raises a TypeError exception (in Ruby 1.6)
789
+ or returns <code>nil</code> (in Ruby 1.8)</p>
792
790
 
793
791
  <p>In addition to &lt;=&gt;, <code>Image</code> mixes in the
794
792
  <code>Comparable</code> module, which defines the &lt;, &lt;=,
@@ -801,8 +799,8 @@ img = Magick::Image.read_inline(content)
801
799
  <h4>Returns</h4>
802
800
 
803
801
  <p>The value of <span class=
804
- "arg">image</span>.<code>signature</code> &lt;=&gt;
805
- <span class="arg">anOtherImage</span>.<code>signature</code>.</p>
802
+ "arg">img</span>.<code>signature</code> &lt;=&gt; <span class=
803
+ "arg">other_mage</span>.<code>signature</code>.</p>
806
804
 
807
805
  <h4>See also</h4>
808
806
 
@@ -818,9 +816,9 @@ img = Magick::Image.read_inline(content)
818
816
  <div class="sig">
819
817
  <h3 id="adaptive_blur">adaptive_blur</h3>
820
818
 
821
- <p><span class="arg">image</span>.adaptive_blur(<span class=
819
+ <p><span class="arg">img</span>.adaptive_blur(<span class=
822
820
  "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0)
823
- -&gt; <em>anImage</em></p>
821
+ -&gt; <em>image</em></p>
824
822
  </div>
825
823
 
826
824
  <div class="desc">
@@ -872,10 +870,10 @@ img = Magick::Image.read_inline(content)
872
870
  <div class="sig">
873
871
  <h3 id="adaptive_blur_channel">adaptive_blur_channel</h3>
874
872
 
875
- <p><span class="arg">image</span>.adaptive_blur(<span class=
873
+ <p><span class="arg">img</span>.adaptive_blur(<span class=
876
874
  "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0
877
875
  [,<span class="arg">channel</span>...]) -&gt;
878
- <em>anImage</em></p>
876
+ <em>image</em></p>
879
877
  </div>
880
878
 
881
879
  <div class="desc">
@@ -923,12 +921,12 @@ img = Magick::Image.read_inline(content)
923
921
  <div class="sig">
924
922
  <h3 id="adaptive_resize">adaptive_resize</h3>
925
923
 
926
- <p><span class="arg">image</span>.adaptive_resize(<span class=
924
+ <p><span class="arg">img</span>.adaptive_resize(<span class=
927
925
  "arg">new_width</span>, <span class="arg">new_height</span>)
928
- -&gt; <em>anImage</em><br />
929
- <span class="arg">image</span>.adaptive_resize(<span class=
926
+ -&gt; <em>image</em><br />
927
+ <span class="arg">img</span>.adaptive_resize(<span class=
930
928
  "arg">scale_factor</span>) -&gt; <span class=
931
- "arg">anImage</span></p>
929
+ "arg">image</span></p>
932
930
  </div>
933
931
 
934
932
  <div class="desc">
@@ -977,9 +975,9 @@ img = Magick::Image.read_inline(content)
977
975
  <div class="sig">
978
976
  <h3 id="adaptive_sharpen">adaptive_sharpen</h3>
979
977
 
980
- <p><span class="arg">image</span>.adaptive_sharpen(<span class=
978
+ <p><span class="arg">img</span>.adaptive_sharpen(<span class=
981
979
  "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0)
982
- -&gt; <em>anImage</em></p>
980
+ -&gt; <em>image</em></p>
983
981
  </div>
984
982
 
985
983
  <div class="desc">
@@ -1031,10 +1029,10 @@ img = Magick::Image.read_inline(content)
1031
1029
  <div class="sig">
1032
1030
  <h3 id="adaptive_sharpen_channel">adaptive_sharpen_channel</h3>
1033
1031
 
1034
- <p><span class="arg">image</span>.adaptive_sharpen(<span class=
1032
+ <p><span class="arg">img</span>.adaptive_sharpen(<span class=
1035
1033
  "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0
1036
1034
  [,<span class="arg">channel</span>...]) -&gt;
1037
- <em>anImage</em></p>
1035
+ <em>image</em></p>
1038
1036
  </div>
1039
1037
 
1040
1038
  <div class="desc">
@@ -1082,10 +1080,9 @@ img = Magick::Image.read_inline(content)
1082
1080
  <div class="sig">
1083
1081
  <h3 id="adaptive_threshold">adaptive_threshold</h3>
1084
1082
 
1085
- <p><span class=
1086
- "arg">image</span>.adaptive_threshold(<span class=
1083
+ <p><span class="arg">img</span>.adaptive_threshold(<span class=
1087
1084
  "arg">width</span>=3, <span class="arg">height</span>=3,
1088
- <span class="arg">offset</span>=0) -&gt; <em>anImage</em></p>
1085
+ <span class="arg">offset</span>=0) -&gt; <em>image</em></p>
1089
1086
  </div>
1090
1087
 
1091
1088
  <div class="desc">
@@ -1140,8 +1137,8 @@ img = Magick::Image.read_inline(content)
1140
1137
  <div class="sig">
1141
1138
  <h3 id="add_noise">add_noise</h3>
1142
1139
 
1143
- <p><span class="arg">image</span>.add_noise(<span class=
1144
- "arg">noise_type</span>) -&gt; <em>anImage</em></p>
1140
+ <p><span class="arg">img</span>.add_noise(<span class=
1141
+ "arg">noise_type</span>) -&gt; <em>image</em></p>
1145
1142
  </div>
1146
1143
 
1147
1144
  <div class="desc">
@@ -1211,7 +1208,7 @@ img = Magick::Image.read_inline(content)
1211
1208
  <div class="sig">
1212
1209
  <h3 id="add_profile">add_profile</h3>
1213
1210
 
1214
- <p><span class="arg">image</span>.add_profile(<span class=
1211
+ <p><span class="arg">img</span>.add_profile(<span class=
1215
1212
  "arg">filename</span>) -&gt; <span class="arg">self</span></p>
1216
1213
  </div>
1217
1214
 
@@ -1255,10 +1252,9 @@ img = Magick::Image.read_inline(content)
1255
1252
  <div class="sig">
1256
1253
  <h3 id="add_noise_channel">add_noise_channel</h3>
1257
1254
 
1258
- <p><span class=
1259
- "arg">image</span>.add_noise_channel(<span class="arg">noise_type</span>
1260
- [,<span class="arg">channel</span>...]) -&gt;
1261
- <em>anImage</em></p>
1255
+ <p><span class="arg">img</span>.add_noise_channel(<span class=
1256
+ "arg">noise_type</span> [,<span class="arg">channel</span>...])
1257
+ -&gt; <em>image</em></p>
1262
1258
  </div>
1263
1259
 
1264
1260
  <div class="desc">
@@ -1300,8 +1296,8 @@ img = Magick::Image.read_inline(content)
1300
1296
  <div class="sig">
1301
1297
  <h3 id="affine_transform">affine_transform</h3>
1302
1298
 
1303
- <p><span class="arg">image</span>.affine_transform(<span class=
1304
- "arg">anAffineMatrix</span>) -&gt; <em>anImage</em></p>
1299
+ <p><span class="arg">img</span>.affine_transform(<span class=
1300
+ "arg">matrix</span>) -&gt; <em>image</em></p>
1305
1301
  </div>
1306
1302
 
1307
1303
  <div class="desc">
@@ -1351,10 +1347,10 @@ img = Magick::Image.read_inline(content)
1351
1347
  <div class="sig">
1352
1348
  <h3 id="annotate">annotate</h3>
1353
1349
 
1354
- <p><span class="arg">image.</span>annotate(<span class=
1350
+ <p><span class="arg">img.</span>annotate(<span class=
1355
1351
  "arg">draw, width, height, x, y, text</span>) <span class=
1356
1352
  "arg">[&nbsp;{ additional parameters }&nbsp;]</span> -&gt;
1357
- <em>image</em></p>
1353
+ <em>self</em></p>
1358
1354
  </div>
1359
1355
 
1360
1356
  <div class="desc">
@@ -1375,8 +1371,8 @@ img = Magick::Image.read_inline(content)
1375
1371
  <div class="sig">
1376
1372
  <h3 id="auto_orient">auto_orient</h3>
1377
1373
 
1378
- <p><span class="arg">image</span>.auto_orient -&gt;
1379
- <em>anImage</em></p>
1374
+ <p><span class="arg">img</span>.auto_orient -&gt;
1375
+ <em>image</em></p>
1380
1376
  </div>
1381
1377
 
1382
1378
  <div class="desc">
@@ -1406,7 +1402,7 @@ img = Magick::Image.read_inline(content)
1406
1402
  <div class="sig">
1407
1403
  <h3 id="auto_orient_bang">auto_orient!</h3>
1408
1404
 
1409
- <p><span class="arg">image</span>.auto_orient! -&gt;
1405
+ <p><span class="arg">img</span>.auto_orient! -&gt;
1410
1406
  <em>self</em></p>
1411
1407
  </div>
1412
1408
 
@@ -1433,9 +1429,9 @@ img = Magick::Image.read_inline(content)
1433
1429
  <div class="sig">
1434
1430
  <h3 id="bilevel_channel">bilevel_channel</h3>
1435
1431
 
1436
- <p><span class="arg">image</span>.bilevel_channel(<span class=
1432
+ <p><span class="arg">img</span>.bilevel_channel(<span class=
1437
1433
  "arg">threshold</span> [,<span class="arg">channel...</span>])
1438
- = <em>aNewImage</em></p>
1434
+ -&gt; <em>image</em></p>
1439
1435
  </div>
1440
1436
 
1441
1437
  <div class="desc">
@@ -1493,11 +1489,11 @@ img = Magick::Image.read_inline(content)
1493
1489
  <div class="sig">
1494
1490
  <h3 id="black_threshold">black_threshold</h3>
1495
1491
 
1496
- <p><span class="arg">image</span>.black_threshold(<span class=
1492
+ <p><span class="arg">img</span>.black_threshold(<span class=
1497
1493
  "arg">red_channel</span> [, <span class=
1498
1494
  "arg">green_channel</span> [, <span class=
1499
1495
  "arg">blue_channel</span> [, <span class=
1500
- "arg">opacity_channel</span>]]]) -&gt; <em>anImage</em></p>
1496
+ "arg">opacity_channel</span>]]]) -&gt; <em>image</em></p>
1501
1497
  </div><!-- this example is larger than normal -->
1502
1498
 
1503
1499
  <div class="desc">
@@ -1535,16 +1531,16 @@ img = Magick::Image.read_inline(content)
1535
1531
  <div class="sig">
1536
1532
  <h3 id="blend">blend</h3>
1537
1533
 
1538
- <p><span class="arg">image</span>.blend(<span class=
1534
+ <p><span class="arg">img</span>.blend(<span class=
1539
1535
  "arg">overlay</span>, <span class="arg">src_percentage</span>,
1540
1536
  <span class="arg">dst_percentage</span>, <span class=
1541
1537
  "arg">x_offset</span>=0, <span class="arg">y_offset</span>=0)
1542
- -&gt; <em>anImage</em><br />
1543
- <span class="arg">image</span>.blend(<span class=
1538
+ -&gt; <em>image</em><br />
1539
+ <span class="arg">img</span>.blend(<span class=
1544
1540
  "arg">overlay</span>, <span class="arg">src_percentage</span>,
1545
1541
  <span class="arg">dst_percentage</span>, <span class=
1546
1542
  "arg">gravity</span>, <span class="arg">x_offset</span>=0,
1547
- <span class="arg">y_offset</span>=0) -&gt; <em>anImage</em></p>
1543
+ <span class="arg">y_offset</span>=0) -&gt; <em>image</em></p>
1548
1544
  </div>
1549
1545
 
1550
1546
  <div class="desc">
@@ -1612,10 +1608,10 @@ img = Magick::Image.read_inline(content)
1612
1608
  <div class="sig">
1613
1609
  <h3 id="blur_channel">blur_channel</h3>
1614
1610
 
1615
- <p><span class="arg">image</span>.blur_channel(<span class=
1611
+ <p><span class="arg">img</span>.blur_channel(<span class=
1616
1612
  "arg">radius=0.0</span>, <span class=
1617
1613
  "arg">sigma=1.0</span><span class="arg">[, channel...]]</span>)
1618
- -&gt; <em>anImage</em></p>
1614
+ -&gt; <em>image</em></p>
1619
1615
  </div>
1620
1616
 
1621
1617
  <div class="desc">
@@ -1665,9 +1661,9 @@ img = Magick::Image.read_inline(content)
1665
1661
  <div class="sig">
1666
1662
  <h3 id="blur_image">blur_image</h3>
1667
1663
 
1668
- <p><span class="arg">image</span>.blur_image(<span class=
1664
+ <p><span class="arg">img</span>.blur_image(<span class=
1669
1665
  "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0)
1670
- -&gt; <em>anImage</em></p>
1666
+ -&gt; <em>image</em></p>
1671
1667
  </div>
1672
1668
 
1673
1669
  <div class="desc">
@@ -1714,9 +1710,9 @@ img = Magick::Image.read_inline(content)
1714
1710
  <div class="sig">
1715
1711
  <h3 id="border">border</h3>
1716
1712
 
1717
- <p><span class="arg">image</span>.border(<span class=
1713
+ <p><span class="arg">img</span>.border(<span class=
1718
1714
  "arg">width</span>, <span class="arg">height</span>,
1719
- <span class="arg">color</span>) -&gt; <em>anImage</em></p>
1715
+ <span class="arg">color</span>) -&gt; <em>image</em></p>
1720
1716
  </div>
1721
1717
 
1722
1718
  <div class="desc">
@@ -1773,7 +1769,7 @@ img = Magick::Image.read_inline(content)
1773
1769
  <div class="sig">
1774
1770
  <h3 id="border_bang">border!</h3>
1775
1771
 
1776
- <p><span class="arg">image</span>.border!(<span class=
1772
+ <p><span class="arg">img</span>.border!(<span class=
1777
1773
  "arg">width</span>, <span class="arg">height</span>,
1778
1774
  <span class="arg">color</span>) -&gt; <em>self</em></p>
1779
1775
  </div>
@@ -1791,11 +1787,11 @@ img = Magick::Image.read_inline(content)
1791
1787
  <div class="sig">
1792
1788
  <h3 id="change_geometry">change_geometry</h3>
1793
1789
 
1794
- <p><span class="arg">image</span>.change_geometry(<span class=
1795
- "arg">aString</span>) {|cols,rows,image| <span class=
1790
+ <p><span class="arg">img</span>.change_geometry(<span class=
1791
+ "arg">string</span>) {|cols,rows,image| <span class=
1796
1792
  "arg">block</span>} -&gt; <em>??? (see Returns)</em><br />
1797
- <span class="arg">image.change_geometry</span>(<span class=
1798
- "arg">aGeometry</span>) {|cols,rows,image| <span class=
1793
+ <span class="arg">img.change_geometry</span>(<span class=
1794
+ "arg">geometry</span>) {|cols,rows,image| <span class=
1799
1795
  "arg">block</span>} -&gt; <em>??? (see Returns)</em></p>
1800
1796
  </div>
1801
1797
 
@@ -1825,7 +1821,7 @@ img = Magick::Image.read_inline(content)
1825
1821
 
1826
1822
  <h4>Example</h4>
1827
1823
  <pre>
1828
- mona = Magick::Image.read('MonaLisa.jpg').first
1824
+ mona = Image.read('MonaLisa.jpg').first
1829
1825
  mona.change_geometry!('320x240') { |cols, rows, img|
1830
1826
  img.resize!(cols, rows)
1831
1827
  }
@@ -1844,7 +1840,7 @@ mona.change_geometry!('320x240') { |cols, rows, img|
1844
1840
  <div class="sig">
1845
1841
  <h3 id="changed_q">changed?</h3>
1846
1842
 
1847
- <p><span class="arg">image</span>.changed? -&gt;
1843
+ <p><span class="arg">img</span>.changed? -&gt;
1848
1844
  <code>true</code> or <code>false</code></p>
1849
1845
  </div>
1850
1846
 
@@ -1860,8 +1856,8 @@ mona.change_geometry!('320x240') { |cols, rows, img|
1860
1856
  <div class="sig">
1861
1857
  <h3 id="channel">channel</h3>
1862
1858
 
1863
- <p><span class="arg">image</span>.channel(<span class=
1864
- "arg">aChannelType</span>) -&gt; <em>anImage</em></p>
1859
+ <p><span class="arg">img</span>.channel(<span class=
1860
+ "arg">channel</span>) -&gt; <em>image</em></p>
1865
1861
  </div>
1866
1862
 
1867
1863
  <div class="desc">
@@ -1902,8 +1898,8 @@ mona.change_geometry!('320x240') { |cols, rows, img|
1902
1898
  <div class="sig">
1903
1899
  <h3 id="channel_depth">channel_depth</h3>
1904
1900
 
1905
- <p><span class="arg">image</span>.channel_depth([<span class=
1906
- "arg">channel</span>...]) -&gt; <em>aNumeric</em></p>
1901
+ <p><span class="arg">img</span>.channel_depth([<span class=
1902
+ "arg">channel</span>...]) -&gt; <em>number</em></p>
1907
1903
  </div>
1908
1904
 
1909
1905
  <div class="desc">
@@ -1939,9 +1935,8 @@ mona.change_geometry!('320x240') { |cols, rows, img|
1939
1935
  <div class="sig">
1940
1936
  <h3 id="channel_extrema">channel_extrema</h3>
1941
1937
 
1942
- <p><span class="arg">image</span>.channel_extrema([<span class=
1943
- "arg">channel</span>...]) -&gt; <em>[aNumeric,
1944
- aNumeric]</em></p>
1938
+ <p><span class="arg">img</span>.channel_extrema([<span class=
1939
+ "arg">channel</span>...]) -&gt; <em>[number, number]</em></p>
1945
1940
  </div>
1946
1941
 
1947
1942
  <div class="desc">
@@ -1973,9 +1968,8 @@ mona.change_geometry!('320x240') { |cols, rows, img|
1973
1968
  <div class="sig">
1974
1969
  <h3 id="channel_mean">channel_mean</h3>
1975
1970
 
1976
- <p><span class="arg">image</span>.channel_mean([<span class=
1977
- "arg">channel</span>...]) -&gt; <em>[aNumeric,
1978
- aNumeric]</em></p>
1971
+ <p><span class="arg">img</span>.channel_mean([<span class=
1972
+ "arg">channel</span>...]) -&gt; <em>[number, number]</em></p>
1979
1973
  </div>
1980
1974
 
1981
1975
  <div class="desc">
@@ -2007,9 +2001,9 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2007
2001
  <div class="sig">
2008
2002
  <h3 id="charcoal">charcoal</h3>
2009
2003
 
2010
- <p><span class="arg">image</span>.charcoal(<span class=
2004
+ <p><span class="arg">img</span>.charcoal(<span class=
2011
2005
  "arg">radius</span>=0.0, <span class="arg">sigma</span>=1.0)
2012
- -&gt; <em>anImage</em></p>
2006
+ -&gt; <em>image</em></p>
2013
2007
  </div>
2014
2008
 
2015
2009
  <div class="desc">
@@ -2057,15 +2051,15 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2057
2051
  <div class="sig">
2058
2052
  <h3 id="check_destroyed">check_destroyed</h3>
2059
2053
 
2060
- <p><span class="arg">image</span>.check_destroyed -&gt;
2054
+ <p><span class="arg">img</span>.check_destroyed -&gt;
2061
2055
  <code>nil</code></p>
2062
2056
  </div>
2063
2057
 
2064
2058
  <div class="desc">
2065
2059
  <h4>Description</h4>
2066
2060
 
2067
- <p>Raises Magick::DestroyedImageError if the image has been
2068
- destroyed. Returns nil otherwise.</p>
2061
+ <p>Raises DestroyedImageError if the image has been destroyed.
2062
+ Returns nil otherwise.</p>
2069
2063
 
2070
2064
  <h4>See also</h4>
2071
2065
 
@@ -2076,10 +2070,10 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2076
2070
  <div class="sig">
2077
2071
  <h3 id="chop">chop</h3>
2078
2072
 
2079
- <p><span class="arg">image</span>.chop(<span class=
2073
+ <p><span class="arg">img</span>.chop(<span class=
2080
2074
  "arg">x</span>, <span class="arg">y</span>, <span class=
2081
2075
  "arg">width</span>, <span class="arg">height</span>) -&gt;
2082
- <em>anImage</em></p>
2076
+ <em>image</em></p>
2083
2077
  </div>
2084
2078
 
2085
2079
  <div class="desc">
@@ -2140,8 +2134,7 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2140
2134
  <div class="sig">
2141
2135
  <h3 id="clone">clone</h3>
2142
2136
 
2143
- <p><span class="arg">image</span>.clone -&gt;
2144
- <em>anImage</em></p>
2137
+ <p><span class="arg">img</span>.clone -&gt; <em>image</em></p>
2145
2138
  </div>
2146
2139
 
2147
2140
  <div class="desc">
@@ -2162,7 +2155,7 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2162
2155
  <div class="sig">
2163
2156
  <h3 id="clut_channel">clut_channel</h3>
2164
2157
 
2165
- <p><span class="arg">image</span>.clut(<span class=
2158
+ <p><span class="arg">img</span>.clut(<span class=
2166
2159
  "arg">clut_image</span> [, <span class=
2167
2160
  "arg">channel...</span>]) -&gt; <em>self</em></p>
2168
2161
  </div>
@@ -2202,7 +2195,7 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2202
2195
  method to use by setting this image's <a href=
2203
2196
  "imageattrs.html#pixel_interpolation_method">pixel_interpolation_method</a>
2204
2197
  attribute to a <a href=
2205
- "constants.html#InterpolatePixelMethod">Magick::InterpolatePixelMethod</a>
2198
+ "constants.html#InterpolatePixelMethod">InterpolatePixelMethod</a>
2206
2199
  value.</dd>
2207
2200
 
2208
2201
  <dt>channel...</dt>
@@ -2226,9 +2219,9 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2226
2219
  <h3 id="color_fill_to_border">color_fill_to_border</h3>
2227
2220
 
2228
2221
  <p><span class=
2229
- "arg">image</span>.color_fill_to_border(<span class=
2222
+ "arg">img</span>.color_fill_to_border(<span class=
2230
2223
  "arg">x</span>, <span class="arg">y</span>, <span class=
2231
- "arg">fill_color</span>) -&gt; <em>anImage</em></p>
2224
+ "arg">fill_color</span>) -&gt; <em>image</em></p>
2232
2225
  </div>
2233
2226
 
2234
2227
  <div class="desc">
@@ -2284,9 +2277,9 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2284
2277
  <div class="sig">
2285
2278
  <h3 id="color_floodfill">color_floodfill</h3>
2286
2279
 
2287
- <p><span class="arg">image</span>.color_floodfill(<span class=
2280
+ <p><span class="arg">img</span>.color_floodfill(<span class=
2288
2281
  "arg">x</span>, <span class="arg">y</span>, <span class=
2289
- "arg">fill_color</span>) -&gt; <em>anImage</em></p>
2282
+ "arg">fill_color</span>) -&gt; <em>image</em></p>
2290
2283
  </div>
2291
2284
 
2292
2285
  <div class="desc">
@@ -2342,8 +2335,8 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2342
2335
  <div class="sig">
2343
2336
  <h3 id="color_histogram">color_histogram</h3>
2344
2337
 
2345
- <p><span class="arg">image</span>.color_histogram() -&gt;
2346
- <em>aHash</em></p>
2338
+ <p><span class="arg">img</span>.color_histogram() -&gt;
2339
+ <em>hash</em></p>
2347
2340
  </div>
2348
2341
 
2349
2342
  <div class="desc">
@@ -2381,11 +2374,11 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2381
2374
  <div class="sig">
2382
2375
  <h3 id="colorize">colorize</h3>
2383
2376
 
2384
- <p><span class="arg">image</span>.colorize(<span class=
2377
+ <p><span class="arg">img</span>.colorize(<span class=
2385
2378
  "arg">red_pct</span>, <span class="arg">green_pct</span>,
2386
2379
  <span class="arg">blue_pct</span>, [<span class=
2387
2380
  "arg">matte_pct</span>, ] <span class="arg">fill</span>) -&gt;
2388
- <em>anImage</em></p>
2381
+ <em>image</em></p>
2389
2382
  </div>
2390
2383
 
2391
2384
  <div class="desc">
@@ -2442,9 +2435,9 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2442
2435
  <div class="sig">
2443
2436
  <h3 id="colormap">colormap</h3>
2444
2437
 
2445
- <p><span class="arg">image</span>.colormap(<span class=
2438
+ <p><span class="arg">img</span>.colormap(<span class=
2446
2439
  "arg">index</span>[, <span class="arg">new_color</span>]) -&gt;
2447
- <em>aString</em></p>
2440
+ <em>string</em></p>
2448
2441
  </div>
2449
2442
 
2450
2443
  <div class="desc">
@@ -2486,9 +2479,9 @@ mona.change_geometry!('320x240') { |cols, rows, img|
2486
2479
  <div class="sig">
2487
2480
  <h3 id="color_point">color_point</h3>
2488
2481
 
2489
- <p><span class="arg">image</span>.color_point(<span class=
2482
+ <p><span class="arg">img</span>.color_point(<span class=
2490
2483
  "arg">x</span>, <span class="arg">y</span>, <span class=
2491
- "arg">fill</span>) -&gt; <em>anImage</em></p>
2484
+ "arg">fill</span>) -&gt; <em>image</em></p>
2492
2485
  </div>
2493
2486
 
2494
2487
  <div class="desc">
@@ -2534,8 +2527,8 @@ f.color_point(50,50, 'red')
2534
2527
  <div class="sig">
2535
2528
  <h3 id="color_reset_bang">color_reset!</h3>
2536
2529
 
2537
- <p><span class="arg">image</span>.color_reset!(<span class=
2538
- "arg">fill</span>) -&gt; <em>image</em></p>
2530
+ <p><span class="arg">img</span>.color_reset!(<span class=
2531
+ "arg">fill</span>) -&gt; <em>self</em></p>
2539
2532
  </div>
2540
2533
 
2541
2534
  <div class="desc">
@@ -2564,10 +2557,10 @@ f.color_reset!(red)
2564
2557
  <div class="sig">
2565
2558
  <h3 id="compare_channel">compare_channel</h3>
2566
2559
 
2567
- <p><span class="arg">image</span>.compare_channel(<span class=
2560
+ <p><span class="arg">img</span>.compare_channel(<span class=
2568
2561
  "arg">img</span>, <span class="arg">metric</span> [,
2569
- <span class="arg">channel...</span>]) -&gt; [<em>anImage</em>,
2570
- <em>aFloat</em>]</p>
2562
+ <span class="arg">channel...</span>]) -&gt; [<em>image</em>,
2563
+ <em>float</em>]</p>
2571
2564
  </div>
2572
2565
 
2573
2566
  <div class="desc">
@@ -2623,24 +2616,23 @@ f.color_reset!(red)
2623
2616
  <div class="sig">
2624
2617
  <h3 id="composite">composite</h3>
2625
2618
 
2626
- <p><span class="arg">image</span>.composite(<span class=
2627
- "arg">img</span>, <span class="arg">x</span>, <span class=
2619
+ <p><span class="arg">dest</span>.composite(<span class=
2620
+ "arg">src</span>, <span class="arg">x</span>, <span class=
2628
2621
  "arg">y</span>, <span class="arg">composite_op</span>) -&gt;
2629
- <em>anImage</em><br />
2630
- <span class="arg">image</span>.composite(<span class=
2631
- "arg">img</span>, <span class="arg">gravity</span>,
2622
+ <em>image</em><br />
2623
+ <span class="arg">dest</span>.composite(<span class=
2624
+ "arg">src</span>, <span class="arg">gravity</span>,
2632
2625
  <span class="arg">composite_op</span>) -&gt;
2633
- <em>anImage</em><br />
2634
- <span class="arg">image</span>.composite(<span class=
2635
- "arg">img</span>, <span class="arg">gravity</span>,
2626
+ <em>image</em><br />
2627
+ <span class="arg">dest</span>.composite(<span class=
2628
+ "arg">src</span>, <span class="arg">gravity</span>,
2636
2629
  <span class="arg">x</span>, <span class="arg">y</span>,
2637
- <span class="arg">composite_op</span>) -&gt;
2638
- <em>anImage</em></p>
2630
+ <span class="arg">composite_op</span>) -&gt; <em>image</em></p>
2639
2631
  </div>
2640
2632
 
2641
2633
  <div class="desc">
2642
- <h4>Description</h4>Composites <span class="arg">img</span>
2643
- onto <span class="arg">image</span> using the specified
2634
+ <h4>Description</h4>Composites <span class="arg">src</span>
2635
+ onto <span class="arg">dest</span> using the specified
2644
2636
  composite operator.
2645
2637
 
2646
2638
  <h4>Arguments</h4>
@@ -2653,7 +2645,7 @@ f.color_reset!(red)
2653
2645
 
2654
2646
  <dd>
2655
2647
  <dl>
2656
- <dt>img</dt>
2648
+ <dt>src</dt>
2657
2649
 
2658
2650
  <dd>Either an imagelist or an image. If an imagelist,
2659
2651
  uses the current image.</dd>
@@ -2676,7 +2668,7 @@ f.color_reset!(red)
2676
2668
 
2677
2669
  <dd>
2678
2670
  <dl>
2679
- <dt>img</dt>
2671
+ <dt>src</dt>
2680
2672
 
2681
2673
  <dd>Either an imagelist or an image. If an imagelist,
2682
2674
  uses the current image.</dd>
@@ -2749,7 +2741,7 @@ f.color_reset!(red)
2749
2741
 
2750
2742
  <dd>
2751
2743
  <dl>
2752
- <dt>img</dt>
2744
+ <dt>src</dt>
2753
2745
 
2754
2746
  <dd>Either an imagelist or an image. If an imagelist,
2755
2747
  uses the current image.</dd>
@@ -2800,16 +2792,16 @@ f.color_reset!(red)
2800
2792
  <div class="sig">
2801
2793
  <h3 id="composite_bang">composite!</h3>
2802
2794
 
2803
- <p><span class="arg">image</span>.composite!(<span class=
2804
- "arg">img</span>, <span class="arg">x</span>, <span class=
2795
+ <p><span class="arg">dest</span>.composite!(<span class=
2796
+ "arg">src</span>, <span class="arg">x</span>, <span class=
2805
2797
  "arg">y</span>, <span class="arg">composite_op</span>) -&gt;
2806
2798
  <em>self</em><br />
2807
- <span class="arg">image</span>.composite!(<span class=
2808
- "arg">img</span>, <span class="arg">gravity</span>,
2799
+ <span class="arg">dest</span>.composite!(<span class=
2800
+ "arg">src</span>, <span class="arg">gravity</span>,
2809
2801
  <span class="arg">composite_op</span>) -&gt;
2810
2802
  <em>self</em><br />
2811
- <span class="arg">image</span>.composite!(<span class=
2812
- "arg">img</span>, <span class="arg">gravity</span>,
2803
+ <span class="arg">dest</span>.composite!(<span class=
2804
+ "arg">src</span>, <span class="arg">gravity</span>,
2813
2805
  <span class="arg">x</span>, <span class="arg">y</span>,
2814
2806
  <span class="arg">composite_op</span>) -&gt; <em>self</em></p>
2815
2807
  </div>
@@ -2827,14 +2819,14 @@ f.color_reset!(red)
2827
2819
  <div class="sig">
2828
2820
  <h3 id="composite_affine">composite_affine</h3>
2829
2821
 
2830
- <p><span class="arg">image</span>.composite_affine(<span class=
2831
- "arg">img</span>, <span class="arg">affine</span>) -&gt;
2832
- <em>anImage</em></p>
2822
+ <p><span class="arg">dest</span>.composite_affine(<span class=
2823
+ "arg">src</span>, <span class="arg">affine</span>) -&gt;
2824
+ <em>image</em></p>
2833
2825
  </div>
2834
2826
 
2835
2827
  <div class="desc">
2836
- <h4>Description</h4>Composite <span class="arg">img</span> over
2837
- the receiver image as dictated by the <span class=
2828
+ <h4>Description</h4>Composite <span class="arg">src</span> over
2829
+ <span class="arg">dest</span> as dictated by the <span class=
2838
2830
  "arg">affine</span> argument.
2839
2831
 
2840
2832
  <h4>Arguments</h4>
@@ -2866,8 +2858,8 @@ f.color_reset!(red)
2866
2858
  <div class="sig">
2867
2859
  <h3 id="compress_colormap">compress_colormap</h3>
2868
2860
 
2869
- <p><span class="arg">image</span>.compress_colormap! -&gt;
2870
- <em>image</em></p>
2861
+ <p><span class="arg">img</span>.compress_colormap! -&gt;
2862
+ <em>self</em></p>
2871
2863
  </div>
2872
2864
 
2873
2865
  <div class="desc">
@@ -2883,7 +2875,7 @@ f.color_reset!(red)
2883
2875
 
2884
2876
  <h4>Example</h4>
2885
2877
  <pre>
2886
- f = Magick::Image.read('cbezier1.gif').first &raquo;
2878
+ f = Image.read('cbezier1.gif').first &raquo;
2887
2879
  cbezier1.gif GIF 500x350+0+0 PseudoClass 128c 8-bit 177503b
2888
2880
  f.colors &raquo; 128
2889
2881
  f.compress_colormap! &raquo;
@@ -2899,9 +2891,9 @@ f.colors &raquo; 108
2899
2891
  <div class="sig">
2900
2892
  <h3 id="contrast">contrast</h3>
2901
2893
 
2902
- <p><span class="arg">image</span>.contrast(<span class=
2894
+ <p><span class="arg">img</span>.contrast(<span class=
2903
2895
  "arg">sharpen</span>=<code>false</code>) -&gt;
2904
- <em>anImage</em></p>
2896
+ <em>image</em></p>
2905
2897
  </div>
2906
2898
 
2907
2899
  <div class="desc">
@@ -2943,11 +2935,11 @@ f.colors &raquo; 108
2943
2935
  <h3 id="contrast_stretch_channel">contrast_stretch_channel</h3>
2944
2936
 
2945
2937
  <p><span class=
2946
- "arg">image</span>.contrast_stretch_channel(<span class=
2938
+ "arg">img</span>.contrast_stretch_channel(<span class=
2947
2939
  "arg">black_point</span> [, <span class=
2948
2940
  "arg">white_point</span>] [, <span class=
2949
2941
  "arg">channel</span>...]) -&gt; <span class=
2950
- "arg">anImage</span></p>
2942
+ "arg">image</span></p>
2951
2943
  </div>
2952
2944
 
2953
2945
  <div class="desc">
@@ -3002,9 +2994,9 @@ f.colors &raquo; 108
3002
2994
  <div class="sig">
3003
2995
  <h3 id="convolve">convolve</h3>
3004
2996
 
3005
- <p><span class="arg">image</span>.convolve(<span class=
2997
+ <p><span class="arg">img</span>.convolve(<span class=
3006
2998
  "arg">order</span>, <span class="arg">kernel</span>) -&gt;
3007
- <em>anImage</em></p>
2999
+ <em>image</em></p>
3008
3000
  </div>
3009
3001
 
3010
3002
  <div class="desc">
@@ -3056,10 +3048,9 @@ f.colors &raquo; 108
3056
3048
  <div class="sig">
3057
3049
  <h3 id="convolve_channel">convolve_channel</h3>
3058
3050
 
3059
- <p><span class="arg">image</span>.convolve_channel(<span class=
3051
+ <p><span class="arg">img</span>.convolve_channel(<span class=
3060
3052
  "arg">order</span>, <span class="arg">kernel</span> [,
3061
- <span class="arg">channel</span>...]) -&gt;
3062
- <em>anImage</em></p>
3053
+ <span class="arg">channel</span>...]) -&gt; <em>image</em></p>
3063
3054
  </div>
3064
3055
 
3065
3056
  <div class="desc">
@@ -3104,8 +3095,8 @@ f.colors &raquo; 108
3104
3095
  <div class="sig">
3105
3096
  <h3 id="copy">copy</h3>
3106
3097
 
3107
- <p><span class="arg">image</span>.copy -&gt;
3108
- <em>anImage</em></p>
3098
+ <p><span class="arg">img</span>.copy -&gt;
3099
+ <em>other_image</em></p>
3109
3100
  </div>
3110
3101
 
3111
3102
  <div class="desc">
@@ -3130,17 +3121,17 @@ f2 = f.copy
3130
3121
  <div class="sig">
3131
3122
  <h3 id="crop">crop</h3>
3132
3123
 
3133
- <p><span class="arg">image</span>.crop(<span class=
3124
+ <p><span class="arg">img</span>.crop(<span class=
3134
3125
  "arg">x</span>, <span class="arg">y</span>, <span class=
3135
3126
  "arg">width</span>, <span class="arg">height</span>) -&gt;
3136
- <em>anImage</em><br />
3137
- <span class="arg">image</span>.crop(<span class=
3127
+ <em>image</em><br />
3128
+ <span class="arg">img</span>.crop(<span class=
3138
3129
  "arg">gravity</span>, <span class="arg">x</span>, <span class=
3139
3130
  "arg">y</span>, <span class="arg">width</span>, <span class=
3140
- "arg">height</span>) -&gt; <em>anImage</em><br />
3141
- <span class="arg">image</span>.crop(<span class=
3131
+ "arg">height</span>) -&gt; <em>image</em><br />
3132
+ <span class="arg">img</span>.crop(<span class=
3142
3133
  "arg">gravity</span>, <span class="arg">width</span>,
3143
- <span class="arg">height</span>) -&gt; <em>anImage</em></p>
3134
+ <span class="arg">height</span>) -&gt; <em>image</em></p>
3144
3135
  </div>
3145
3136
 
3146
3137
  <div class="desc">
@@ -3316,17 +3307,17 @@ cropped = img.crop(x, y, width, height, true)
3316
3307
  <div class="sig">
3317
3308
  <h3 id="crop_bang">crop!</h3>
3318
3309
 
3319
- <p><span class="arg">image</span>.crop!(<span class=
3310
+ <p><span class="arg">img</span>.crop!(<span class=
3320
3311
  "arg">x</span>, <span class="arg">y</span>, <span class=
3321
3312
  "arg">width</span>, <span class="arg">height</span>) -&gt;
3322
- <em>image</em><br />
3323
- <span class="arg">image</span>.crop!(<span class=
3313
+ <em>self</em><br />
3314
+ <span class="arg">img</span>.crop!(<span class=
3324
3315
  "arg">gravity</span>, <span class="arg">x</span>, <span class=
3325
3316
  "arg">y</span>, <span class="arg">width</span>, <span class=
3326
- "arg">height</span>) -&gt; <em>image</em><br />
3327
- <span class="arg">image</span>.crop!(<span class=
3317
+ "arg">height</span>) -&gt; <em>self</em><br />
3318
+ <span class="arg">img</span>.crop!(<span class=
3328
3319
  "arg">gravity</span>, <span class="arg">width</span>,
3329
- <span class="arg">height</span>) -&gt; <em>image</em></p>
3320
+ <span class="arg">height</span>) -&gt; <em>self</em></p>
3330
3321
  </div>
3331
3322
 
3332
3323
  <div class="desc">
@@ -3341,103 +3332,23 @@ cropped = img.crop(x, y, width, height, true)
3341
3332
  <div class="sig">
3342
3333
  <h3 id="crop_resized">crop_resized</h3>
3343
3334
 
3344
- <p><span class="arg">image</span>.crop_resized(<span class=
3335
+ <p><span class="arg">img</span>.crop_resized(<span class=
3345
3336
  "arg">width</span>, <span class="arg">height</span>,
3346
- <span class=
3347
- "arg">gravity</span>=<code>Magick::CenterGravity</code>) -&gt;
3348
- <span class="arg">anImage</span></p>
3337
+ gravity=CenterGravity) -&gt; <em>image</em></p>
3349
3338
  </div>
3350
3339
 
3351
3340
  <div class="desc">
3352
3341
  <h4>Description</h4>
3353
3342
 
3354
- <p>Creates an image with the size specified by <span class=
3355
- "arg">width</span> and <span class="arg">height</span> having
3356
- the same aspect ratio as the target image. Use
3357
- <code>crop_resized</code> to produce a thumbnail image with an
3358
- exact size.</p>
3359
-
3360
- <p>If necessary, <code>crop_resized</code> resizes the image
3361
- such that its smaller dimension exactly fits the rectangle
3362
- specified by <span class="arg">width</span> and <span class=
3363
- "arg">height</span>. If the resulting image exceeds the
3364
- rectangle's size in the image's larger dimension,
3365
- <code>crop_resized</code> crops the image to fit the rectangle
3366
- exactly. Use <span class="arg">gravity</span> to specify which
3367
- portion of the image to crop.</p>
3368
-
3369
- <h4>Arguments</h4>
3370
-
3371
- <dl>
3372
- <dt>width</dt>
3373
-
3374
- <dd>The width of the resulting image in pixels</dd>
3375
-
3376
- <dt>height</dt>
3377
-
3378
- <dd>The height of the resulting image in pixels</dd>
3379
-
3380
- <dt>gravity</dt>
3381
-
3382
- <dd>Use this argument to specify which portion of the image
3383
- to retain when cropping. The value can be any <a href=
3384
- "constants.html#GravityType">GravityType</a> value. The
3385
- effect is the same as the <span class="arg">gravity</span>
3386
- argument to the <a href="#crop"><code>crop</code></a> method.
3387
- The default is <code>CenterGravity</code>.</dd>
3388
- </dl>
3389
-
3390
- <h4>Returns</h4>
3391
-
3392
- <p>A new image</p>
3393
-
3394
- <h4>Example</h4>
3395
-
3396
- <p>In this example, some rows have been cropped from the top
3397
- and bottom to produce a square thumbnail from a rectangular
3398
- image without distorting the image.</p>
3399
-
3400
- <p class="rollover"><a href=
3401
- "javascript:popup('crop_resized.rb.html')">
3402
- <!-- This img tag displays the original image when the mouse is over -->
3403
- <img id="cropless" style="display: none" onmouseout=
3404
- "this.style.display='none';cropped.style.display='';" src=
3405
- "ex/images/Flower_Hat.jpg" alt="crop_resize example" title=
3406
- "Click to see the example script" />
3407
- <!-- This img tag displays the framed image when the mouse is not over-->
3408
- <img style=
3409
- "padding-left:62px; padding-right: 62px; padding-top: 87px;padding-bottom:87px;"
3410
- id="cropped" onmouseover=
3411
- "this.style.display='none';cropless.style.display='';" src=
3412
- "ex/crop_resized.jpg" alt="frame example" /></a> <img src=
3413
- "ex/images/spin.gif" alt="" style="margin-bottom: 230px" title=
3414
- "Mouse over the example to see the original image" /></p>
3415
- </div>
3416
-
3417
- <div class="sig">
3418
- <h3 id="crop_resized_bang">crop_resized!</h3>
3419
-
3420
- <p><span class="arg">image</span>.crop_resized!(<span class=
3421
- "arg">width</span>, <span class="arg">height</span>,
3422
- <span class=
3423
- "arg">gravity</span>=<code>Magick::CenterGravity</code>) -&gt;
3424
- <span class="arg">image</span></p>
3425
- </div>
3426
-
3427
- <div class="desc">
3428
- <h4>Description</h4>The in-place form of <a href=
3429
- "#crop_resized">crop_resized</a>.
3430
-
3431
- <h4>Returns</h4>
3432
-
3433
- <p>self</p>
3343
+ <p>An alias for <a href=
3344
+ "image3.html#resize_to_fill">resize_to_fill</a>.</p>
3434
3345
  </div>
3435
3346
 
3436
3347
  <div class="sig">
3437
3348
  <h3 id="cycle_colormap">cycle_colormap</h3>
3438
3349
 
3439
- <p><span class="arg">image</span>.cycle_colormap(<span class=
3440
- "arg">amount</span>) -&gt; <em>anImage</em></p>
3350
+ <p><span class="arg">img</span>.cycle_colormap(<span class=
3351
+ "arg">amount</span>) -&gt; <em>image</em></p>
3441
3352
  </div>
3442
3353
 
3443
3354
  <div class="desc">
@@ -3481,7 +3392,7 @@ cropped = img.crop(x, y, width, height, true)
3481
3392
  <div class="sig">
3482
3393
  <h3 id="delete_profile">delete_profile</h3>
3483
3394
 
3484
- <p><span class="arg">image</span>.delete_profile(<span class=
3395
+ <p><span class="arg">img</span>.delete_profile(<span class=
3485
3396
  "arg">profile_name</span>) -&gt; <span class=
3486
3397
  "arg">self</span></p>
3487
3398
  </div>
@@ -3515,8 +3426,8 @@ cropped = img.crop(x, y, width, height, true)
3515
3426
  <div class="sig">
3516
3427
  <h3 id="despeckle">despeckle</h3>
3517
3428
 
3518
- <p><span class="arg">image</span>.despeckle -&gt;
3519
- <em>anImage</em></p>
3429
+ <p><span class="arg">img</span>.despeckle -&gt;
3430
+ <em>image</em></p>
3520
3431
  </div>
3521
3432
 
3522
3433
  <div class="desc">
@@ -3537,7 +3448,7 @@ cropped = img.crop(x, y, width, height, true)
3537
3448
  <div class="sig">
3538
3449
  <h3 id="destroy_bang">destroy!</h3>
3539
3450
 
3540
- <p><span class="arg">image</span>.destroy! -&gt;
3451
+ <p><span class="arg">img</span>.destroy! -&gt;
3541
3452
  <em>self</em></p>
3542
3453
  </div>
3543
3454
 
@@ -3548,7 +3459,7 @@ cropped = img.crop(x, y, width, height, true)
3548
3459
  system. After an image has been destroyed, all Image methods
3549
3460
  (except <a href="image1.html#destroyed_q">destroyed?</a> and
3550
3461
  <a href="image2.html#inspect">inspect</a>) called on the image
3551
- will raise a Magick::DestroyedImageError.</p>
3462
+ will raise a DestroyedImageError.</p>
3552
3463
 
3553
3464
  <p>It is not possible to recover a destroyed image.</p>
3554
3465
 
@@ -3565,7 +3476,7 @@ cropped = img.crop(x, y, width, height, true)
3565
3476
  <div class="sig">
3566
3477
  <h3 id="destroyed_q">destroyed?</h3>
3567
3478
 
3568
- <p><span class="arg">image</span>.destroyed? -&gt;
3479
+ <p><span class="arg">img</span>.destroyed? -&gt;
3569
3480
  <code>true</code> or <code>false</code></p>
3570
3481
  </div>
3571
3482
 
@@ -3584,8 +3495,8 @@ cropped = img.crop(x, y, width, height, true)
3584
3495
  <div class="sig">
3585
3496
  <h3 id="difference">difference</h3>
3586
3497
 
3587
- <p><span class="arg">image</span>.difference(<span class=
3588
- "arg">other</span>) -&gt; <em>anArray</em></p>
3498
+ <p><span class="arg">img</span>.difference(<span class=
3499
+ "arg">other</span>) -&gt; <em>array</em></p>
3589
3500
  </div>
3590
3501
 
3591
3502
  <div class="desc">
@@ -3641,12 +3552,11 @@ cropped = img.crop(x, y, width, height, true)
3641
3552
  <div class="sig">
3642
3553
  <h3 id="dispatch">dispatch</h3>
3643
3554
 
3644
- <p><span class="arg">image</span>.dispatch(<span class=
3555
+ <p><span class="arg">img</span>.dispatch(<span class=
3645
3556
  "arg">x</span>, <span class="arg">y</span>, <span class=
3646
3557
  "arg">columns</span>, <span class="arg">rows</span>,
3647
3558
  <span class="arg">map</span>, <span class=
3648
- "arg">float</span>=<code>false</code>) -&gt;
3649
- <em>anArray</em></p>
3559
+ "arg">float</span>=<code>false</code>) -&gt; <em>array</em></p>
3650
3560
  </div>
3651
3561
 
3652
3562
  <div class="desc">
@@ -3692,25 +3602,7 @@ cropped = img.crop(x, y, width, height, true)
3692
3602
 
3693
3603
  <h4>Example</h4>
3694
3604
  <pre>
3695
- #! /usr/local/bin/ruby -w
3696
- require 'RMagick'
3697
-
3698
- f = Magick::Image.read("images/Flower_Hat.jpg").first
3699
-
3700
- pixels = f.dispatch(0,0,f.columns,f.rows,"RGB")
3701
-
3702
- # Write the pixels to a file, to be included
3703
- # in the constitute.rb example.
3704
- File.open('pixels-array', 'w') { |txt|
3705
- txt.puts("Width = #{f.columns}")
3706
- txt.puts("Height = #{f.rows}")
3707
- txt.print('Pixels = [')
3708
- pixels = pixels.join(',')
3709
- pixels.gsub!(/(\d+,){1,25}/) { "#{$&amp;}\n" }
3710
- txt.print(pixels)
3711
- txt.puts(']')
3712
- }
3713
- exit
3605
+ pixels = f.dispatch(0, 0, f.columns, f.rows, "RGB")
3714
3606
  </pre>
3715
3607
 
3716
3608
  <h4>See also</h4>
@@ -3732,24 +3624,24 @@ exit
3732
3624
  <div class="sig">
3733
3625
  <h3 id="displace">displace</h3>
3734
3626
 
3735
- <p><span class="arg">image</span>.displace(<span class=
3627
+ <p><span class="arg">img</span>.displace(<span class=
3736
3628
  "arg">displacement_map</span>, <span class=
3737
3629
  "arg">x_amplitude</span>, <span class="arg">y_amplitude</span>,
3738
3630
  <span class="arg">x_offset</span>=0, <span class=
3739
- "arg">y_offset</span>=0) -&gt; <em>anImage</em><br />
3740
- <span class="arg">image</span>.displace(<span class=
3631
+ "arg">y_offset</span>=0) -&gt; <em>image</em><br />
3632
+ <span class="arg">img</span>.displace(<span class=
3741
3633
  "arg">displacement_map</span>, <span class=
3742
3634
  "arg">x_amplitude</span>, <span class="arg">y_amplitude</span>,
3743
3635
  <span class="arg">gravity</span>, <span class=
3744
3636
  "arg">x_offset</span>=0, <span class="arg">y_offset</span>=0)
3745
- -&gt; <em>anImage</em></p>
3637
+ -&gt; <em>image</em></p>
3746
3638
  </div>
3747
3639
 
3748
3640
  <div class="desc">
3749
3641
  <h4>Description</h4>
3750
3642
 
3751
3643
  <p>Uses <span class="arg">displacement_map</span> to move color
3752
- from <span class="arg">image</span> to the output image.</p>
3644
+ from <span class="arg">img</span> to the output image.</p>
3753
3645
 
3754
3646
  <p>This method corresponds to the -displace option of
3755
3647
  ImageMagick's <code>composite</code> command.</p>
@@ -3803,8 +3695,8 @@ exit
3803
3695
  <div class="sig">
3804
3696
  <h3 id="display">display</h3>
3805
3697
 
3806
- <p><span class="arg">image</span>.display [ <span class="arg">{
3807
- optional arguments }</span> ] -&gt; <em>image</em></p>
3698
+ <p><span class="arg">img</span>.display [ <span class="arg">{
3699
+ optional arguments }</span> ] -&gt; <em>self</em></p>
3808
3700
  </div>
3809
3701
 
3810
3702
  <div class="desc">
@@ -3840,23 +3732,23 @@ exit
3840
3732
  <div class="sig">
3841
3733
  <h3 id="dissolve">dissolve</h3>
3842
3734
 
3843
- <p><span class="arg">image</span>.dissolve(<span class=
3735
+ <p><span class="arg">img</span>.dissolve(<span class=
3844
3736
  "arg">overlay</span>, <span class="arg">src_percentage</span>,
3845
3737
  <span class="arg">dst_percentage</span>, <span class=
3846
3738
  "arg">x_offset</span>=0, <span class="arg">y_offset</span>=0)
3847
- -&gt; <em>anImage</em><br />
3848
- <span class="arg">image</span>.dissolve(<span class=
3739
+ -&gt; <em>image</em><br />
3740
+ <span class="arg">img</span>.dissolve(<span class=
3849
3741
  "arg">overlay</span>, <span class="arg">src_percentage</span>,
3850
3742
  <span class="arg">dst_percentage</span>, <span class=
3851
3743
  "arg">gravity</span>, <span class="arg">x_offset</span>=0,
3852
- <span class="arg">y_offset</span>=0) -&gt; <em>anImage</em></p>
3744
+ <span class="arg">y_offset</span>=0) -&gt; <em>image</em></p>
3853
3745
  </div>
3854
3746
 
3855
3747
  <div class="desc">
3856
3748
  <h4>Description</h4>
3857
3749
 
3858
3750
  <p>Composites the <span class="arg">overlay</span> image into
3859
- the target image. The opacity of <span class="arg">image</span>
3751
+ the target image. The opacity of <span class="arg">img</span>
3860
3752
  is multiplied by <span class="arg">dst_percentage</span> and
3861
3753
  opacity of <span class="arg">overlay</span> is multiplied by
3862
3754
  <span class="arg">src_percentage</span>.</p>
@@ -3886,7 +3778,7 @@ exit
3886
3778
  If <span class="arg">src_percentage</span> is a number it is
3887
3779
  interpreted as a percentage. Both 0.25 and "25%" mean 25%.
3888
3780
  This argument may omitted if no other arguments follow it. In
3889
- this case <span class="arg">image</span>'s opacity is
3781
+ this case <span class="arg">img</span>'s opacity is
3890
3782
  unchanged.</dd>
3891
3783
  </dl>
3892
3784
 
@@ -3930,10 +3822,10 @@ exit
3930
3822
  <div class="sig">
3931
3823
  <h3 id="distort">distort</h3>
3932
3824
 
3933
- <p><span class="arg">image</span>.distort(<span class=
3825
+ <p><span class="arg">img</span>.distort(<span class=
3934
3826
  "arg">type</span>, <span class="arg">points</span>,
3935
3827
  <span class="arg">bestfit</span>=<code>false</code>) -&gt;
3936
- <em>anImage</em></p>
3828
+ <em>image</em></p>
3937
3829
  </div>
3938
3830
 
3939
3831
  <div class="desc">
@@ -3989,11 +3881,10 @@ exit
3989
3881
  <div class="sig">
3990
3882
  <h3 id="distortion_channel">distortion_channel</h3>
3991
3883
 
3992
- <p><span class=
3993
- "arg">image</span>.distortion_channel(<span class=
3884
+ <p><span class="arg">img</span>.distortion_channel(<span class=
3994
3885
  "arg">reconstructed_image</span>, <span class=
3995
3886
  "arg">metric</span>[, <span class="arg">channel</span>...])
3996
- -&gt; <em>aFloat</em></p>
3887
+ -&gt; <em>float</em></p>
3997
3888
  </div>
3998
3889
 
3999
3890
  <div class="desc">
@@ -4043,8 +3934,8 @@ exit
4043
3934
  <div class="sig">
4044
3935
  <h3 id="dup">dup</h3>
4045
3936
 
4046
- <p><span class="arg">image</span>.dup -&gt;
4047
- <em>anImage</em></p>
3937
+ <p><span class="arg">img</span>.dup -&gt;
3938
+ <em>other_image</em></p>
4048
3939
  </div>
4049
3940
 
4050
3941
  <div class="desc">