rmagick 1.9.1 → 1.9.2
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.
- data/ChangeLog +5 -0
- data/README.html +8 -8
- data/README.txt +6 -6
- data/configure +89 -23
- data/configure.ac +19 -3
- data/doc/ilist.html +44 -19
- data/doc/image1.html +29 -29
- data/doc/image3.html +42 -35
- data/doc/imageattrs.html +113 -12
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmagick.h +10 -5
- data/ext/RMagick/rmagick_config.h.in +4 -1
- data/ext/RMagick/rmimage.c +73 -29
- data/ext/RMagick/rmmain.c +16 -2
- data/ext/RMagick/rmutil.c +341 -461
- data/lib/RMagick.rb +15 -8
- data/rmagick.gemspec +1 -1
- metadata +2 -2
data/doc/image1.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
6
6
|
<meta name="generator" content=
|
7
|
-
"HTML Tidy for
|
7
|
+
"HTML Tidy for Linux/x86 (vers 1st March 2005), see www.w3.org" />
|
8
8
|
|
9
9
|
<title>RMagick: class Image (class and instance methods, part
|
10
10
|
1)</title>
|
@@ -368,14 +368,14 @@ img = Magick::Image.capture {
|
|
368
368
|
|
369
369
|
<h4>Arguments</h4>
|
370
370
|
|
371
|
-
<p>A blob can be a string containing an image file such as
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
371
|
+
<p>A blob can be a string containing an image file such as a
|
372
|
+
JPEG or GIF. The string can contain a multi-image file such as
|
373
|
+
an animated GIF or a Photoshop image with multiple layers. A
|
374
|
+
blob can also be one of the strings produced by <a href=
|
375
|
+
"image3.html#to_blob">to_blob</a>. Control the format of the
|
376
|
+
created image(s) by setting additional <a href=
|
377
|
+
"info.html">Image::Info</a> attributes in the optional block
|
378
|
+
argument.</p>
|
379
379
|
|
380
380
|
<h4>Returns</h4>
|
381
381
|
|
@@ -788,8 +788,8 @@ img = Magick::Image.read_inline(content)
|
|
788
788
|
<div class="noise_example_wrapper">
|
789
789
|
<a href="javascript:popup('add_noise.rb.html')"><img src=
|
790
790
|
"ex/images/Flower_Hat.jpg" alt="add_noise example" id=
|
791
|
-
"add_noise_example" title=
|
792
|
-
/></a>
|
791
|
+
"add_noise_example" title=
|
792
|
+
"Click to see the example script" /></a>
|
793
793
|
|
794
794
|
<p>Click the NoiseType to see the effect.</p>
|
795
795
|
|
@@ -948,12 +948,10 @@ img = Magick::Image.read_inline(content)
|
|
948
948
|
"Mouse over the example to see the original image" /></p>
|
949
949
|
|
950
950
|
<h4>See also</h4>
|
951
|
-
|
951
|
+
|
952
952
|
<p><a href="#adaptive_threshold">adaptive_threshold</a>,
|
953
|
-
<a href=
|
954
|
-
random_threshold_channel</a></p>
|
955
|
-
|
956
|
-
|
953
|
+
<a href=
|
954
|
+
"image3.html#random_threshold_channel">random_threshold_channel</a></p>
|
957
955
|
|
958
956
|
<h4>Magick API</h4>
|
959
957
|
|
@@ -1054,7 +1052,8 @@ img = Magick::Image.read_inline(content)
|
|
1054
1052
|
<h4>See also</h4>
|
1055
1053
|
|
1056
1054
|
<p><a href="image2.html#gaussian_blur">gaussian_blur</a>,
|
1057
|
-
<a href="image2.html#motion_blur">motion_blur</a
|
1055
|
+
<a href="image2.html#motion_blur">motion_blur</a>, <a href=
|
1056
|
+
"imageattrs.html#virtual_pixel_method">virtual_pixel_method</a></p>
|
1058
1057
|
|
1059
1058
|
<h4>Magick API</h4>
|
1060
1059
|
|
@@ -1145,13 +1144,12 @@ img = Magick::Image.read_inline(content)
|
|
1145
1144
|
"padding: 10px; display: none;" id="borderless" onmouseout=
|
1146
1145
|
"this.style.display='none'; bordered.style.display='';" src=
|
1147
1146
|
"ex/images/Flower_Hat.jpg" alt="border example" title=
|
1148
|
-
"Click to see the example script" /> <img id=
|
1149
|
-
|
1147
|
+
"Click to see the example script" /> <img id="bordered"
|
1148
|
+
onmouseover=
|
1150
1149
|
"this.style.display='none'; borderless.style.display='';" src=
|
1151
|
-
"ex/border.jpg" alt="border example" /></a><img
|
1152
|
-
|
1153
|
-
|
1154
|
-
"Mouse over the example to see the original image" /></p>
|
1150
|
+
"ex/border.jpg" alt="border example" /></a><img src=
|
1151
|
+
"ex/images/spin.gif" alt="" class="spin" style="left: 224px;"
|
1152
|
+
title="Mouse over the example to see the original image" /></p>
|
1155
1153
|
|
1156
1154
|
<h4>See also</h4>
|
1157
1155
|
|
@@ -2225,8 +2223,8 @@ f.color_reset!(red)
|
|
2225
2223
|
<p>Removes duplicate or unused entries in the colormap. Only
|
2226
2224
|
<a href="constants.html#ClassType">PseudoClass</a> images have
|
2227
2225
|
a colormap. If the image is <code>DirectClass</code> then
|
2228
|
-
<code>compress_colormap!</code> converts it to
|
2229
|
-
PseudoClass</code>.</p>
|
2226
|
+
<code>compress_colormap!</code> converts it to
|
2227
|
+
<code>PseudoClass</code>.</p>
|
2230
2228
|
|
2231
2229
|
<h4>Returns</h4>self
|
2232
2230
|
|
@@ -2637,9 +2635,9 @@ cropped = img.crop(x, y, width, height, true)
|
|
2637
2635
|
<p class="imquote">Displaces the colormap by a given number of
|
2638
2636
|
positions. If you cycle the colormap a number of times you can
|
2639
2637
|
produce a psychedelic effect.</p>
|
2640
|
-
|
2641
|
-
<p>The returned image is always a <code>PseudoClass</code>
|
2642
|
-
regardless of the type of the original image.</p>
|
2638
|
+
|
2639
|
+
<p>The returned image is always a <code>PseudoClass</code>
|
2640
|
+
image, regardless of the type of the original image.</p>
|
2643
2641
|
|
2644
2642
|
<h4>Arguments</h4>
|
2645
2643
|
|
@@ -2911,7 +2909,9 @@ exit
|
|
2911
2909
|
|
2912
2910
|
<h4>Returns</h4>the last value returned by the block
|
2913
2911
|
|
2914
|
-
<h4>Magick API</h4
|
2912
|
+
<h4>Magick API</h4>
|
2913
|
+
|
2914
|
+
<p>GetNextImageProfile</p>
|
2915
2915
|
</div>
|
2916
2916
|
|
2917
2917
|
<div class="sig">
|
data/doc/image3.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
3
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
@@ -352,8 +352,8 @@
|
|
352
352
|
<p>×Magick does not automatically remove profiles when
|
353
353
|
resizing images. If you are trying to make your JPEG thumbnail
|
354
354
|
images as small as possible, use <code>profile!</code> to
|
355
|
-
remove any profiles from the image as well. Also see
|
356
|
-
|
355
|
+
remove any profiles from the image as well. Also see <a href=
|
356
|
+
"#strip_bang">strip!</a></p>
|
357
357
|
</div>
|
358
358
|
|
359
359
|
<div class="sig">
|
@@ -552,11 +552,11 @@ img.quantum_operator(DivideQuantumOperator, 2, RedChannel)
|
|
552
552
|
</pre>
|
553
553
|
|
554
554
|
<h4>See also</h4>
|
555
|
-
|
555
|
+
|
556
556
|
<p>The <a href="struct.html#view">Image:View</a> class supports
|
557
|
-
operations on individual pixels and collections of pixels, as
|
558
|
-
well as operations on channels within pixels. See <a href=
|
559
|
-
view</a>,
|
557
|
+
operations on individual pixels and collections of pixels, as
|
558
|
+
well as operations on channels within pixels. See <a href=
|
559
|
+
"#view">view</a>, below.</p>
|
560
560
|
|
561
561
|
<h4>Magick API</h4>QuantumOperatorRegionImage (GraphicsMagick
|
562
562
|
1.1), EvaluateImageChannel (ImageMagick)
|
@@ -966,15 +966,14 @@ random_threshold_channel(geom, RedChannel)
|
|
966
966
|
id="notrotated" onmouseout=
|
967
967
|
"this.style.display='none'; rotated.style.display='';" src=
|
968
968
|
"ex/images/Flower_Hat.jpg" alt="rotate example" title=
|
969
|
-
"Click to see the example script"
|
969
|
+
"Click to see the example script" /><!--
|
970
970
|
This img tag displays the rotated image.
|
971
971
|
--><img class="hide"
|
972
972
|
id="rotated" onmouseover=
|
973
973
|
"this.style.display='none'; notrotated.style.display='';" src=
|
974
|
-
"ex/rotate_f.jpg" alt="rotate example"
|
975
|
-
|
976
|
-
"
|
977
|
-
"Mouse over the example to see the original image" /></p>
|
974
|
+
"ex/rotate_f.jpg" alt="rotate example" /></a> <img src=
|
975
|
+
"ex/images/spin.gif" alt="" class="spin" style="left:322px;"
|
976
|
+
title="Mouse over the example to see the original image" /></p>
|
978
977
|
|
979
978
|
<h4>See also</h4>
|
980
979
|
|
@@ -1255,8 +1254,8 @@ random_threshold_channel(geom, RedChannel)
|
|
1255
1254
|
|
1256
1255
|
<h4>See also</h4>
|
1257
1256
|
|
1258
|
-
<p>You can get more control by using
|
1259
|
-
|
1257
|
+
<p>You can get more control by using <a href=
|
1258
|
+
"image1.html#colorize">colorize</a>.</p>
|
1260
1259
|
|
1261
1260
|
<h4>Magick API</h4>
|
1262
1261
|
|
@@ -1413,14 +1412,13 @@ random_threshold_channel(geom, RedChannel)
|
|
1413
1412
|
onmouseout=
|
1414
1413
|
"this.style.display='none';shadowed.style.display='';" src=
|
1415
1414
|
"ex/shadow_before.gif" alt="shadow example" title=
|
1416
|
-
"Click to see the example script"
|
1415
|
+
"Click to see the example script" /><!--
|
1417
1416
|
This img tag displays the shadowed image when the mouse is not over
|
1418
1417
|
--><img class="hide"
|
1419
1418
|
id="shadowed" onmouseover=
|
1420
1419
|
"this.style.display='none';shadowless.style.display='';" src=
|
1421
|
-
"ex/shadow_after.gif" alt="shadow example"
|
1422
|
-
"
|
1423
|
-
"margin-bottom: 120px" title=
|
1420
|
+
"ex/shadow_after.gif" alt="shadow example" /></a> <img src=
|
1421
|
+
"ex/images/spin.gif" alt="" style="margin-bottom: 120px" title=
|
1424
1422
|
"Mouse over the example to see the original image" /></p>
|
1425
1423
|
|
1426
1424
|
<h4>Magick API</h4>
|
@@ -1465,6 +1463,11 @@ random_threshold_channel(geom, RedChannel)
|
|
1465
1463
|
<h4>Magick API</h4>
|
1466
1464
|
|
1467
1465
|
<p>SharpenImage</p>
|
1466
|
+
|
1467
|
+
<h4>See also</h4>
|
1468
|
+
|
1469
|
+
<p><a href=
|
1470
|
+
"imageattrs.html#virtual_pixel_method">virtual_pixel_method</a></p>
|
1468
1471
|
</div>
|
1469
1472
|
|
1470
1473
|
<div class="sig">
|
@@ -1626,14 +1629,14 @@ random_threshold_channel(geom, RedChannel)
|
|
1626
1629
|
id="noshear" onmouseout=
|
1627
1630
|
"this.style.display='none'; sheared.style.display='';" src=
|
1628
1631
|
"ex/images/Flower_Hat.jpg" alt="shear example" title=
|
1629
|
-
"Click to see the example script"
|
1632
|
+
"Click to see the example script" /> <!--
|
1630
1633
|
This img tag displays the sheared image when the mouse is not over
|
1631
1634
|
-->
|
1632
1635
|
<img id="sheared" onmouseover=
|
1633
1636
|
"this.style.display='none'; noshear.style.display='';" src=
|
1634
|
-
"ex/shear.jpg" alt="shear example"
|
1635
|
-
"
|
1636
|
-
"
|
1637
|
+
"ex/shear.jpg" alt="shear example" /></a><img src=
|
1638
|
+
"ex/images/spin.gif" alt="" class="spin" style=
|
1639
|
+
"left: 253px; top: 34px" title=
|
1637
1640
|
"Mouse over the example to see the original image" /></p>
|
1638
1641
|
|
1639
1642
|
<h4>See also</h4>
|
@@ -1842,14 +1845,13 @@ img.properties »
|
|
1842
1845
|
id="nosplice" onmouseout=
|
1843
1846
|
"this.style.display='none';spliced.style.display='';" src=
|
1844
1847
|
"ex/images/Flower_Hat.jpg" alt="splice example" title=
|
1845
|
-
"Click to see the example script"
|
1848
|
+
"Click to see the example script" /><!--
|
1846
1849
|
This img tag displays the spliced image when the mouse is not over
|
1847
1850
|
--><img class="hide"
|
1848
1851
|
id="spliced" onmouseover=
|
1849
1852
|
"this.style.display='none';nosplice.style.display='';" src=
|
1850
|
-
"ex/splice.jpg" alt="splice example"
|
1851
|
-
|
1852
|
-
"margin-bottom: 280px" title=
|
1853
|
+
"ex/splice.jpg" alt="splice example" /></a> <img src=
|
1854
|
+
"ex/images/spin.gif" alt="" style="margin-bottom: 280px" title=
|
1853
1855
|
"Mouse over the example to see the original image" /></p>
|
1854
1856
|
|
1855
1857
|
<h4>See also</h4>
|
@@ -2135,8 +2137,8 @@ p stats.red.stddev » 0.231399683489667
|
|
2135
2137
|
|
2136
2138
|
<p>self</p>
|
2137
2139
|
|
2138
|
-
<h4>Magick API</h4>StripImage (available in ImageMagick
|
2139
|
-
|
2140
|
+
<h4>Magick API</h4>StripImage (available in ImageMagick and
|
2141
|
+
GraphicsMagick 1.1)
|
2140
2142
|
</div>
|
2141
2143
|
|
2142
2144
|
<div class="sig">
|
@@ -2416,7 +2418,9 @@ thumbnail = img.thumbnail(img.columns*0.09, img.rows*0.09)
|
|
2416
2418
|
"#resize">resize</a>, <a href="#sample">sample</a>, <a href=
|
2417
2419
|
"#scale">scale</a></p>
|
2418
2420
|
|
2419
|
-
<h4>Magick API</h4
|
2421
|
+
<h4>Magick API</h4>
|
2422
|
+
|
2423
|
+
<p>ThumbnailImage</p>
|
2420
2424
|
</div>
|
2421
2425
|
|
2422
2426
|
<div class="sig">
|
@@ -2926,19 +2930,23 @@ end
|
|
2926
2930
|
"padding-top:25px; padding-bottom:25px; display:none" id=
|
2927
2931
|
"nowave" title="Click to see the example script" onmouseout=
|
2928
2932
|
"this.style.display='none'; waved.style.display='';" src=
|
2929
|
-
"ex/images/Flower_Hat.jpg" alt="wave example"
|
2930
|
-
<!--
|
2933
|
+
"ex/images/Flower_Hat.jpg" alt="wave example" /> <!--
|
2931
2934
|
This img tag displays the framed image when the mouse is not over
|
2932
2935
|
--><img class="hide"
|
2933
2936
|
id="waved" onmouseover=
|
2934
2937
|
"this.style.display='none'; nowave.style.display='';" src=
|
2935
|
-
"ex/wave.jpg" alt="wave example"
|
2938
|
+
"ex/wave.jpg" alt="wave example" /></a> <img src=
|
2936
2939
|
"ex/images/spin.gif" alt="" class="spin" title=
|
2937
2940
|
"Mouse over the example to see the original image" /></p>
|
2938
2941
|
|
2939
2942
|
<h4>Magick API</h4>
|
2940
2943
|
|
2941
2944
|
<p>WaveImage</p>
|
2945
|
+
|
2946
|
+
<h4>See also</h4>
|
2947
|
+
|
2948
|
+
<p><a href=
|
2949
|
+
"imageattrs.html#virtual_pixel_method">virtual_pixel_method</a></p>
|
2942
2950
|
</div>
|
2943
2951
|
|
2944
2952
|
<div class="sig">
|
@@ -2976,8 +2984,7 @@ end
|
|
2976
2984
|
<h4>See also</h4>
|
2977
2985
|
|
2978
2986
|
<p><a href="image1.html#black_threshold">black_threshold</a>,
|
2979
|
-
<a href=
|
2980
|
-
"image1.html#bilevel_channel">bilevel_channel</a></p>
|
2987
|
+
<a href="image1.html#bilevel_channel">bilevel_channel</a></p>
|
2981
2988
|
|
2982
2989
|
<h4>Magick API</h4>
|
2983
2990
|
|
data/doc/imageattrs.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
6
6
|
<meta name="generator" content=
|
7
|
-
"HTML Tidy for
|
7
|
+
"HTML Tidy for Mac OS X (vers 1st September 2004), see www.w3.org" />
|
8
8
|
|
9
9
|
<title>RMagick: class Image (attribute methods)</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
@@ -80,13 +80,13 @@
|
|
80
80
|
<li><a href="#delay">delay</a></li>
|
81
81
|
|
82
82
|
<li><a href="#density">density</a></li>
|
83
|
+
|
84
|
+
<li><a href="#depth">depth</a></li>
|
83
85
|
</ul>
|
84
86
|
</div>
|
85
87
|
|
86
88
|
<div class="toccol">
|
87
89
|
<ul>
|
88
|
-
<li><a href="#depth">depth</a></li>
|
89
|
-
|
90
90
|
<li><a href="#directory">directory</a></li>
|
91
91
|
|
92
92
|
<li><a href="#dispose">dispose</a></li>
|
@@ -123,13 +123,13 @@
|
|
123
123
|
<li><a href="#mime_type">mime_type</a></li>
|
124
124
|
|
125
125
|
<li><a href="#monitor">monitor</a></li>
|
126
|
+
|
127
|
+
<li><a href="#montage">montage</a></li>
|
126
128
|
</ul>
|
127
129
|
</div>
|
128
130
|
|
129
131
|
<div class="toccol">
|
130
132
|
<ul>
|
131
|
-
<li><a href="#montage">montage</a></li>
|
132
|
-
|
133
133
|
<li><a href=
|
134
134
|
"#normalized_mean_error">normalized_mean_error</a></li>
|
135
135
|
|
@@ -158,12 +158,17 @@
|
|
158
158
|
|
159
159
|
<li><a href="#start_loop">start_loop</a></li>
|
160
160
|
|
161
|
+
<li><a href="#ticks_per_second">ticks_per_second</a></li>
|
162
|
+
|
161
163
|
<li><a href="#tile_info">tile_info</a></li>
|
162
164
|
|
163
165
|
<li><a href="#total_colors">total_colors</a></li>
|
164
166
|
|
165
167
|
<li><a href="#units">units</a></li>
|
166
168
|
|
169
|
+
<li><a href=
|
170
|
+
"#virtual_pixel_method">virtual_pixel_method</a></li>
|
171
|
+
|
167
172
|
<li><a href="#x_resolution">x_resolution</a></li>
|
168
173
|
|
169
174
|
<li><a href="#y_resolution">y_resolution</a></li>
|
@@ -526,9 +531,11 @@
|
|
526
531
|
<div class="desc">
|
527
532
|
<h4>Description</h4>
|
528
533
|
|
529
|
-
<p
|
530
|
-
|
531
|
-
|
534
|
+
<p>Number of ticks which must expire before displaying the next
|
535
|
+
image in an animated sequence. The default number of ticks is
|
536
|
+
0. By default there are 100 ticks per second but this number
|
537
|
+
can be changed via the <a href=
|
538
|
+
"#ticks_per_second">ticks_per_second</a> attribute.</p>
|
532
539
|
|
533
540
|
<h4>Arguments</h4>An integer value between 0 and 65535,
|
534
541
|
inclusive.
|
@@ -957,7 +964,8 @@
|
|
957
964
|
|
958
965
|
<p><span class="imquote">The mean error per pixel computed when
|
959
966
|
a image is color reduced.</span> This attribute is only valid
|
960
|
-
if the <code>measure_error</code> argument to
|
967
|
+
if the <code>measure_error</code> argument to
|
968
|
+
<code>quantize</code><a href=
|
961
969
|
"ilist.html#quantize">[ImageList]</a><a href=
|
962
970
|
"image3.html#quantize">[Image]</a> is set to <code>true</code>.
|
963
971
|
Get-only.</p>
|
@@ -1102,7 +1110,8 @@ blur_image is 100% complete.
|
|
1102
1110
|
|
1103
1111
|
<p><span class="imquote">The normalized mean error computed
|
1104
1112
|
when an image is color reduced.</span> This attribute is only
|
1105
|
-
valid if the <code>measure_error</code> argument to
|
1113
|
+
valid if the <code>measure_error</code> argument to
|
1114
|
+
<code>quantize</code><a href=
|
1106
1115
|
"ilist.html#quantize">[ImageList]</a><a href=
|
1107
1116
|
"image3.html#quantize">[Image]</a> is set to <code>true</code>.
|
1108
1117
|
Get-only.</p>
|
@@ -1355,6 +1364,35 @@ blur_image is 100% complete.
|
|
1355
1364
|
<p>Indicates the first image in an animation.</p>
|
1356
1365
|
</div>
|
1357
1366
|
|
1367
|
+
<div class="sig">
|
1368
|
+
<h3 id="ticks_per_second">ticks_per_second</h3>
|
1369
|
+
|
1370
|
+
<p><span class="arg">image.</span>ticks_per_second ->
|
1371
|
+
<em>aNumeric</em><br />
|
1372
|
+
<span class="arg">iamge.</span>ticks_per_second = <span class=
|
1373
|
+
"arg">aNumeric</span></p>
|
1374
|
+
</div>
|
1375
|
+
|
1376
|
+
<div class="desc">
|
1377
|
+
<h4>Description</h4>
|
1378
|
+
|
1379
|
+
<p>Gets/sets the number of ticks per second. This attribute is
|
1380
|
+
used in conjunction with the <a href="#delay">delay</a>
|
1381
|
+
attribute to establish the amount of time that must elapse
|
1382
|
+
between frames in an animation.The default is 100.</p>
|
1383
|
+
|
1384
|
+
<h4>Returns</h4>
|
1385
|
+
|
1386
|
+
<p>The current number of ticks per second</p>
|
1387
|
+
|
1388
|
+
<h4>Notes</h4>
|
1389
|
+
|
1390
|
+
<p>Available in ImageMagick 6.2.4 and later. Prior to this
|
1391
|
+
release the number of ticks per second was fixed at 100. The
|
1392
|
+
GIF image format only accepts 100 ticks per second regardless
|
1393
|
+
of the value of this attribute.</p>
|
1394
|
+
</div>
|
1395
|
+
|
1358
1396
|
<div class="sig">
|
1359
1397
|
<h3 id="tile_info">tile_info</h3>
|
1360
1398
|
|
@@ -1397,8 +1435,9 @@ blur_image is 100% complete.
|
|
1397
1435
|
<p>The number of colors in the image after quantization. Set by
|
1398
1436
|
<code>quantize</code> <a href=
|
1399
1437
|
"ilist.html#quantize">[ImageList]</a><a href=
|
1400
|
-
"image3.html#quantize">[Image]</a> if the
|
1401
|
-
argument is <code>true</code>.
|
1438
|
+
"image3.html#quantize">[Image]</a> if the
|
1439
|
+
<code>measure_error</code> argument is <code>true</code>.
|
1440
|
+
Get-only.</p>
|
1402
1441
|
</div>
|
1403
1442
|
|
1404
1443
|
<div class="sig">
|
@@ -1431,6 +1470,68 @@ blur_image is 100% complete.
|
|
1431
1470
|
"y_resolution">y_resolution</a></p>
|
1432
1471
|
</div>
|
1433
1472
|
|
1473
|
+
<div class="sig">
|
1474
|
+
<h3 id="virtual_pixel_method">virtual_pixel_method</h3>
|
1475
|
+
|
1476
|
+
<p><span class="arg">image</span>.virtual_pixel_method ->
|
1477
|
+
<em>aVirtualPixelMethod</em><br />
|
1478
|
+
<span class="arg">image</span>.virtual_pixel_method =
|
1479
|
+
<span class="arg">aVirtualPixelMethod</span></p>
|
1480
|
+
</div>
|
1481
|
+
|
1482
|
+
<div class="desc">
|
1483
|
+
<h4>Description</h4>
|
1484
|
+
|
1485
|
+
<p>Specify how "virtual pixels" behave. Virtual pixels are
|
1486
|
+
pixels that are outside the boundaries of the image. Methods
|
1487
|
+
such as <a href="image1.html#blur_image">blur_image</a>,
|
1488
|
+
<a href="image3.html#sharpen">sharpen</a>, and <a href=
|
1489
|
+
"image3.html#wave">wave</a> use virtual pixels.</p>
|
1490
|
+
|
1491
|
+
<h4>Arguments</h4>
|
1492
|
+
|
1493
|
+
<p>The virtual pixel method can be any one of the following
|
1494
|
+
<code>VirtualPixelMethod</code> constants:</p>
|
1495
|
+
|
1496
|
+
<dl>
|
1497
|
+
<dt>EdgeVirtualPixelMethod</dt>
|
1498
|
+
|
1499
|
+
<dd>Extend the edge pixel toward infinity. This is the
|
1500
|
+
default.</dd>
|
1501
|
+
|
1502
|
+
<dt>MirrorVirtualPixelMethod</dt>
|
1503
|
+
|
1504
|
+
<dd>Mirror the image.</dd>
|
1505
|
+
|
1506
|
+
<dt>TileVirtualPixelMethod</dt>
|
1507
|
+
|
1508
|
+
<dd>Tile the image.</dd>
|
1509
|
+
|
1510
|
+
<dt>BackgroundVirtualPixelMethod</dt>
|
1511
|
+
|
1512
|
+
<dd>The area surrounding the image is the background
|
1513
|
+
color.</dd>
|
1514
|
+
|
1515
|
+
<dt>TransparentVirtualPixelMethod</dt>
|
1516
|
+
|
1517
|
+
<dd>The area surrounding the image is transparent
|
1518
|
+
blackness.</dd>
|
1519
|
+
</dl>
|
1520
|
+
|
1521
|
+
<p><code>BackgroundVirtualPixelMethod</code> and
|
1522
|
+
<code>TransparentVirtualPixelMethod</code> are available only
|
1523
|
+
in ImageMagick 6.2.4 and later.</p>
|
1524
|
+
|
1525
|
+
<h4>Returns</h4>
|
1526
|
+
|
1527
|
+
<p>A <code>VirtualPixelMethod</code> constant.</p>
|
1528
|
+
|
1529
|
+
<h4>Example</h4>
|
1530
|
+
<pre>
|
1531
|
+
img.virtual_pixel_method = Magick::TransparentVirtualPixelMethod
|
1532
|
+
</pre>
|
1533
|
+
</div>
|
1534
|
+
|
1434
1535
|
<div class="sig">
|
1435
1536
|
<h3 id="x_resolution">x_resolution</h3>
|
1436
1537
|
|