rmagick 1.15.11 → 1.15.12
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 +7 -0
- data/README.html +8 -8
- data/README.txt +6 -6
- data/configure +55 -31
- data/configure.ac +28 -15
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +2 -2
- data/doc/draw.html +6 -6
- data/doc/ex/watermark.rb +6 -11
- data/doc/ilist.html +8 -8
- data/doc/image1.html +8 -10
- data/doc/image2.html +11 -11
- data/doc/image3.html +32 -32
- data/doc/imageattrs.html +9 -9
- data/doc/imusage.html +3 -3
- data/doc/index.html +3 -3
- data/doc/info.html +4 -4
- data/doc/magick.html +2 -2
- data/doc/optequiv.html +8 -8
- data/doc/rvg.html +3 -3
- data/doc/rvgclip.html +3 -3
- data/doc/rvggroup.html +3 -3
- data/doc/rvgimage.html +3 -3
- data/doc/rvgpattern.html +4 -4
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +2 -2
- data/doc/rvgtut.html +2 -2
- data/doc/rvguse.html +2 -2
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +4 -4
- data/doc/usage.html +6 -6
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmagick.h +6 -1
- data/ext/RMagick/rmagick_config.h.in +4 -0
- data/ext/RMagick/rmimage.c +39 -10
- data/ext/RMagick/rmutil.c +240 -1
- data/rmagick.gemspec +1 -1
- metadata +2 -2
data/doc/draw.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.12: class Draw</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -25,7 +25,7 @@
|
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|
28
|
-
<h6 id="header">RMagick 1.15.
|
28
|
+
<h6 id="header">RMagick 1.15.12 User's Guide and Reference</h6>
|
29
29
|
|
30
30
|
<div class="nav">
|
31
31
|
« <a href="image3.html">Prev</a> | <a href=
|
@@ -1234,7 +1234,7 @@ gc.draw
|
|
1234
1234
|
|
1235
1235
|
<h4>See also</h4>
|
1236
1236
|
|
1237
|
-
<p><a href="
|
1237
|
+
<p><a href="image1.html#composite">composite</a></p>
|
1238
1238
|
</div>
|
1239
1239
|
|
1240
1240
|
<div class="sig">
|
@@ -1732,7 +1732,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1732
1732
|
"image2.html#matte_replace">matte_replace</a>, <a href=
|
1733
1733
|
"image2.html#matte_floodfill">matte_floodfill</a>, <a href=
|
1734
1734
|
"image2.html#matte_fill_to_border">matte_fill_to_border</a>,
|
1735
|
-
<a href="
|
1735
|
+
<a href="image2.html#opaque">opaque</a>, <a href=
|
1736
1736
|
"image3.html#transparent">transparent</a>
|
1737
1737
|
</div>
|
1738
1738
|
|
@@ -2232,7 +2232,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2232
2232
|
"ex/skewx.gif" alt="skewx example" title=
|
2233
2233
|
"Click to see the example script" /></a></p>
|
2234
2234
|
|
2235
|
-
<h4>See also</h4><a href="skewy">skewy</a>, <a href=
|
2235
|
+
<h4>See also</h4><a href="#skewy">skewy</a>, <a href=
|
2236
2236
|
"#affine">affine</a>, <a href="#rotate">rotate</a>
|
2237
2237
|
</div>
|
2238
2238
|
|
@@ -2708,7 +2708,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2708
2708
|
|
2709
2709
|
<h4>Example</h4>
|
2710
2710
|
|
2711
|
-
<p><a href="javascript('text_undercolor.rb.html')"><img src=
|
2711
|
+
<p><a href="javascript:popup('text_undercolor.rb.html')"><img src=
|
2712
2712
|
"ex/text_undercolor.gif" alt="text_undercolor example" title=
|
2713
2713
|
"Click to see the example script" /></a></p>
|
2714
2714
|
</div>
|
data/doc/ex/watermark.rb
CHANGED
@@ -7,19 +7,14 @@ img = Magick::Image.read("images/Flower_Hat.jpg").first
|
|
7
7
|
# Make a watermark from the word "RMagick"
|
8
8
|
mark = Magick::Image.new(140, 40) {self.background_color = "none"}
|
9
9
|
gc = Magick::Draw.new
|
10
|
-
|
11
|
-
offset = -5
|
12
|
-
else
|
13
|
-
offset = -35
|
14
|
-
end
|
15
|
-
gc.annotate(mark, 0, 0, 0, offset, "RMagick") do
|
10
|
+
gc.annotate(mark, 0, 0, 0, -5, "RMagick") do
|
16
11
|
gc.gravity = Magick::CenterGravity
|
17
12
|
gc.pointsize = 32
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
13
|
+
if RUBY_PLATFORM =~ /mswin32/
|
14
|
+
gc.font_family = "Georgia"
|
15
|
+
else
|
16
|
+
gc.font_family = "Times"
|
17
|
+
end
|
23
18
|
gc.fill = "white"
|
24
19
|
gc.stroke = "none"
|
25
20
|
end
|
data/doc/ilist.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.12: class ImageList</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -20,7 +20,7 @@
|
|
20
20
|
</head>
|
21
21
|
|
22
22
|
<body>
|
23
|
-
<h6 id="header">RMagick 1.15.
|
23
|
+
<h6 id="header">RMagick 1.15.12 User's Guide and Reference</h6>
|
24
24
|
|
25
25
|
<div class="nav">
|
26
26
|
« <a href="magick.html">Prev</a> | <a href=
|
@@ -464,7 +464,7 @@ imagelist.animate { self.server_name = "other:0.0" }
|
|
464
464
|
|
465
465
|
<h4>See also</h4>
|
466
466
|
|
467
|
-
<p><a href="#
|
467
|
+
<p><a href="#display">display</a></p>
|
468
468
|
|
469
469
|
<h4>Note</h4>
|
470
470
|
|
@@ -502,7 +502,7 @@ imagelist.animate { self.server_name = "other:0.0" }
|
|
502
502
|
|
503
503
|
<h4>Example</h4>
|
504
504
|
|
505
|
-
<p>See the <a href="#
|
505
|
+
<p>See the <a href="#map">map</a> example.</p>
|
506
506
|
|
507
507
|
<h4>Magick API</h4>
|
508
508
|
|
@@ -900,7 +900,7 @@ ilist.display
|
|
900
900
|
be quite slow depending on the complexity of the expression.
|
901
901
|
Generally you will get better performance by accessing the
|
902
902
|
image pixels as <a href="struct.html#Pixel">Pixel</a> objects
|
903
|
-
(see <a href="image2.html#
|
903
|
+
(see <a href="image2.html#get_pixels">get_pixels</a> and
|
904
904
|
<a href="image3.html#view">view</a>) and using Ruby code to
|
905
905
|
perform the mathematics.</li>
|
906
906
|
|
@@ -935,7 +935,7 @@ res = imgl.fx('1/2', Magick::BlueChannel)
|
|
935
935
|
|
936
936
|
<h4>See also</h4>
|
937
937
|
|
938
|
-
<p><a href="image2.html#
|
938
|
+
<p><a href="image2.html#get_pixels">get_pixels</a>, <a href=
|
939
939
|
"image3.html#view">view</a></p>
|
940
940
|
</div>
|
941
941
|
|
@@ -1124,7 +1124,7 @@ self.frame = Magick::Geometry.new(20,20,4,4)
|
|
1124
1124
|
<dd>If the tile has a label, the label is included in the
|
1125
1125
|
frame. The default is to have no frame.</dd>
|
1126
1126
|
|
1127
|
-
<dd>See <a href="
|
1127
|
+
<dd>See <a href="image2.html#frame">Image#frame</a>.</dd>
|
1128
1128
|
|
1129
1129
|
<dt>geometry=</dt>
|
1130
1130
|
|
@@ -1662,7 +1662,7 @@ number = '0'
|
|
1662
1662
|
|
1663
1663
|
<h4>See also</h4>
|
1664
1664
|
|
1665
|
-
<p><a href="
|
1665
|
+
<p><a href="image1.html#read">Image.read</a></p>
|
1666
1666
|
|
1667
1667
|
<h4>Magick API</h4>
|
1668
1668
|
|
data/doc/image1.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.12: class Image (class and instance methods,
|
10
10
|
part 1)</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 1.15.
|
51
|
+
<h6 id="header">RMagick 1.15.12 User's Guide and Reference</h6>
|
52
52
|
|
53
53
|
<div class="nav">
|
54
54
|
« <a href="imageattrs.html">Prev</a> | <a href=
|
@@ -599,9 +599,7 @@ animated.gif[2] GIF 127x120+0+0 PseudoClass 256c 8-bit 54395b]
|
|
599
599
|
required. If the image format cannot be deduced from the image
|
600
600
|
data, you can use the <a href="info.html#format">format</a>
|
601
601
|
attribute. If you want to extract a subset of an image
|
602
|
-
sequence,
|
603
|
-
and <a href="info.html#number_scenes">number_scenes</a>
|
604
|
-
attributes.</p>
|
602
|
+
sequence, read <a href="imusage.html#frames">this</a> section.</p>
|
605
603
|
|
606
604
|
<h4>Returns</h4>
|
607
605
|
|
@@ -897,7 +895,7 @@ img = Magick::Image.read_inline(content)
|
|
897
895
|
|
898
896
|
<h4>See also</h4>
|
899
897
|
|
900
|
-
<p><a href="#resize">resize</a></p>
|
898
|
+
<p><a href="image3.html#resize">resize</a></p>
|
901
899
|
|
902
900
|
<h4>Magick API</h4>
|
903
901
|
|
@@ -1172,7 +1170,7 @@ img = Magick::Image.read_inline(content)
|
|
1172
1170
|
method can also be used to add a profile. The type of profile
|
1173
1171
|
must be specified and the profile data must be in the form of a
|
1174
1172
|
string. Also see <a href="#delete_profile">delete_profile</a>
|
1175
|
-
and <a href="
|
1173
|
+
and <a href="#each_profile">each_profile</a>.</p>
|
1176
1174
|
|
1177
1175
|
<h4>Magick API</h4>
|
1178
1176
|
|
@@ -2360,7 +2358,7 @@ mona.change_geometry!('320x240') { |cols, rows, img|
|
|
2360
2358
|
"arg">x</span>,<span class="arg">y</span> to the fill color.
|
2361
2359
|
This method creates a new image object. If you want to set a
|
2362
2360
|
single pixel in the image without creating a new image, use
|
2363
|
-
<a href="
|
2361
|
+
<a href="image2.html#pixel_color">pixel_color</a> or the
|
2364
2362
|
<a href="draw.html#point">Draw#point</a> method.
|
2365
2363
|
|
2366
2364
|
<h4>Arguments</h4>
|
@@ -2387,7 +2385,7 @@ f.color_point(50,50, 'red')
|
|
2387
2385
|
|
2388
2386
|
<h4>See also</h4>
|
2389
2387
|
|
2390
|
-
<p><a href="
|
2388
|
+
<p><a href="image2.html#pixel_color">pixel_color</a>, <a href=
|
2391
2389
|
"draw.html#point">Draw#point</a></p>
|
2392
2390
|
|
2393
2391
|
<h4>Magick API</h4>
|
@@ -3271,7 +3269,7 @@ cropped = img.crop(x, y, width, height, true)
|
|
3271
3269
|
</div>
|
3272
3270
|
|
3273
3271
|
<div class="sig">
|
3274
|
-
<h3 id="
|
3272
|
+
<h3 id="crop_resized_bang">crop_resized!</h3>
|
3275
3273
|
|
3276
3274
|
<p><span class="arg">image</span>.crop_resized!(<span class=
|
3277
3275
|
"arg">width</span>, <span class="arg">height</span>,
|
data/doc/image2.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.12: class Image (instance methods, part 2)</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -47,7 +47,7 @@ td.ds {
|
|
47
47
|
</head>
|
48
48
|
|
49
49
|
<body>
|
50
|
-
<h6 id="header">RMagick 1.15.
|
50
|
+
<h6 id="header">RMagick 1.15.12 User's Guide and Reference</h6>
|
51
51
|
|
52
52
|
<div class="nav">
|
53
53
|
« <a href="image1.html">Prev</a> | <a href=
|
@@ -228,8 +228,8 @@ td.ds {
|
|
228
228
|
|
229
229
|
<h4>See also</h4>
|
230
230
|
|
231
|
-
<p><a href="
|
232
|
-
<a href="
|
231
|
+
<p><a href="#median_filter">median_filter</a>,
|
232
|
+
<a href="image3.html#reduce_noise">reduce_noise</a>, <a href=
|
233
233
|
"image3.html#unsharp_mask">unsharp_mask</a></p>
|
234
234
|
|
235
235
|
<h4>Magick API</h4>
|
@@ -530,7 +530,7 @@ scanline = img.export_pixels(0, r, img.columns, 1, "RGB");
|
|
530
530
|
<div class="desc">
|
531
531
|
<h4>Description</h4>
|
532
532
|
|
533
|
-
<p>In-place form of <a href="
|
533
|
+
<p>In-place form of <a href="#flip">flip</a>.</p>
|
534
534
|
|
535
535
|
<h4>Returns</h4>
|
536
536
|
|
@@ -586,7 +586,7 @@ scanline = img.export_pixels(0, r, img.columns, 1, "RGB");
|
|
586
586
|
<div class="desc">
|
587
587
|
<h4>Description</h4>
|
588
588
|
|
589
|
-
<p>In-place form of <a href="
|
589
|
+
<p>In-place form of <a href="#flop">flop</a>.</p>
|
590
590
|
|
591
591
|
<h4>Returns</h4>
|
592
592
|
|
@@ -1794,7 +1794,7 @@ img.import_pixels(0, 0, hat.columns, hat.rows, "RGB", char_buffer, Magick::CharP
|
|
1794
1794
|
<h4>See also</h4>
|
1795
1795
|
|
1796
1796
|
<p><a href="image1.html#constitute">constitute</a>, <a href=
|
1797
|
-
"
|
1797
|
+
"#export_pixels">export_pixels</a>, <a href=
|
1798
1798
|
"image3.html#store_pixels">store_pixels</a></p>
|
1799
1799
|
|
1800
1800
|
<h4>Magick API</h4>
|
@@ -2280,7 +2280,7 @@ img.level(white_point, gamma, black_point) -> anImage # wrong!
|
|
2280
2280
|
|
2281
2281
|
<h4>See also</h4>
|
2282
2282
|
|
2283
|
-
<p><a href="draw.html#
|
2283
|
+
<p><a href="draw.html#matte">Draw#matte</a></p>
|
2284
2284
|
</div>
|
2285
2285
|
|
2286
2286
|
<div class="sig">
|
@@ -2349,7 +2349,7 @@ img.level(white_point, gamma, black_point) -> anImage # wrong!
|
|
2349
2349
|
|
2350
2350
|
<h4>See also</h4>
|
2351
2351
|
|
2352
|
-
<p><a href="imageattrs.html#
|
2352
|
+
<p><a href="imageattrs.html#opacity">opacity=</a></p>
|
2353
2353
|
|
2354
2354
|
<h4>Magick API</h4>SetImageOpacity
|
2355
2355
|
</div>
|
@@ -2441,7 +2441,7 @@ img.level(white_point, gamma, black_point) -> anImage # wrong!
|
|
2441
2441
|
<div class="desc">
|
2442
2442
|
<h4>Description</h4>
|
2443
2443
|
|
2444
|
-
<p>In-place form of <a href="#
|
2444
|
+
<p>In-place form of <a href="#minify">minify</a>.</p>
|
2445
2445
|
|
2446
2446
|
<h4>Returns</h4>
|
2447
2447
|
|
@@ -2822,7 +2822,7 @@ img = img.opaque('white', 'red')
|
|
2822
2822
|
|
2823
2823
|
<h4>See also</h4>
|
2824
2824
|
|
2825
|
-
<p><a href="#color_floodfill">color_floodfill</a></p>
|
2825
|
+
<p><a href="image1.html#color_floodfill">color_floodfill</a></p>
|
2826
2826
|
|
2827
2827
|
<h4>Magick API</h4>
|
2828
2828
|
|
data/doc/image3.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.12: class Image (instance methods, part
|
10
10
|
3)</title>
|
11
11
|
<meta http-equiv="Content-Type" content=
|
12
12
|
"text/html; charset=us-ascii" />
|
@@ -52,7 +52,7 @@
|
|
52
52
|
</head>
|
53
53
|
|
54
54
|
<body>
|
55
|
-
<h6 id="header">RMagick 1.15.
|
55
|
+
<h6 id="header">RMagick 1.15.12 User's Guide and Reference</h6>
|
56
56
|
|
57
57
|
<div class="nav">
|
58
58
|
« <a href="image2.html">Prev</a> | <a href=
|
@@ -870,7 +870,7 @@ random_threshold_channel(geom, RedChannel)
|
|
870
870
|
<h4>Example</h4>
|
871
871
|
|
872
872
|
<p>The left side of the image has been modified by <a href=
|
873
|
-
"#
|
873
|
+
"#add_noise"><code>add_noise</code></a>. The right side
|
874
874
|
has been filtered by <code>reduce_noise(0)</code>.</p>
|
875
875
|
|
876
876
|
<p><a href="javascript:popup('reduce_noise.rb.html')"><img src=
|
@@ -936,7 +936,7 @@ random_threshold_channel(geom, RedChannel)
|
|
936
936
|
<p><span class="arg">image</span>.resize(<span class=
|
937
937
|
"arg">new_width</span>, <span class="arg">new_height</span>,
|
938
938
|
<em>filter</em>=<a href=
|
939
|
-
"constants.html#
|
939
|
+
"constants.html#FilterTypes">LanczosFilter</a>,
|
940
940
|
<em>support</em>=1.0) -> <em>image</em><br />
|
941
941
|
<span class="arg">image</span>.resize(<span class=
|
942
942
|
"arg">scale_factor</span>) -> <em>anImage</em></p>
|
@@ -967,10 +967,10 @@ random_threshold_channel(geom, RedChannel)
|
|
967
967
|
|
968
968
|
<dt>filter</dt>
|
969
969
|
|
970
|
-
<dd>The <a href="constants.html#
|
970
|
+
<dd>The <a href="constants.html#FilterTypes">filter</a> to use
|
971
971
|
when resizing. If you do not specify a filter argument,
|
972
972
|
resize uses the value of the receiver's <a href=
|
973
|
-
"imageattrs.html#
|
973
|
+
"imageattrs.html#filter">filter attribute</a>.
|
974
974
|
<span class="imquote">Most of the filters are FIR (finite
|
975
975
|
impulse response), however, Bessel, Gaussian, and Sinc are
|
976
976
|
IIR (infinite impulse response). Bessel and Sinc are windowed
|
@@ -981,7 +981,7 @@ random_threshold_channel(geom, RedChannel)
|
|
981
981
|
<dd>Values > 1 increase the blurriness. Values < 1
|
982
982
|
increase the sharpness. If this argument is not specified,
|
983
983
|
<code>resize</code> uses the value of the receiver's <a href=
|
984
|
-
"imageattrs.html#
|
984
|
+
"imageattrs.html#blur">blur</a> attribute.</dd>
|
985
985
|
|
986
986
|
<dt>scale_factor</dt>
|
987
987
|
|
@@ -1015,7 +1015,7 @@ random_threshold_channel(geom, RedChannel)
|
|
1015
1015
|
|
1016
1016
|
<p><em>image</em>.resize!(<em>new_width</em>,
|
1017
1017
|
<em>new_height</em>, <em>filter</em>=<a href=
|
1018
|
-
"constants.html#
|
1018
|
+
"constants.html#FilterTypes">LanczosFilter</a>,
|
1019
1019
|
<em>support</em>=1.0) -> <em>image</em><br />
|
1020
1020
|
<span class="arg">image</span>.resize!(<span class=
|
1021
1021
|
"arg">scale_factor</span>) -> <em>image</em></p>
|
@@ -1354,7 +1354,7 @@ random_threshold_channel(geom, RedChannel)
|
|
1354
1354
|
<div class="desc">
|
1355
1355
|
<h4>Description</h4>
|
1356
1356
|
|
1357
|
-
<p>In-place form of <a href="#
|
1357
|
+
<p>In-place form of <a href="#scale">scale</a>.</p>
|
1358
1358
|
|
1359
1359
|
<h4>Returns</h4>
|
1360
1360
|
|
@@ -1804,7 +1804,7 @@ random_threshold_channel(geom, RedChannel)
|
|
1804
1804
|
<div class="desc">
|
1805
1805
|
<h4>Description</h4>
|
1806
1806
|
|
1807
|
-
<p>In-place form of <a href="#
|
1807
|
+
<p>In-place form of <a href="#shave">shave</a>.</p>
|
1808
1808
|
|
1809
1809
|
<h4>Returns</h4>
|
1810
1810
|
|
@@ -2128,7 +2128,7 @@ img.properties »
|
|
2128
2128
|
"image1.html#color_fill_to_border">color_fill_to_border</a>,
|
2129
2129
|
<a href="image1.html#color_floodfill">color_floodfill</a>,
|
2130
2130
|
<a href="image1.html#color_reset_bang">color_reset!</a>,
|
2131
|
-
<a href="image2.html#
|
2131
|
+
<a href="image2.html#erase_bang">erase!</a>, <a href=
|
2132
2132
|
"image2.html#opaque">opaque</a></p>
|
2133
2133
|
|
2134
2134
|
<h4>Magick API</h4>
|
@@ -2283,7 +2283,7 @@ p stats.red.stddev » 0.231399683489667
|
|
2283
2283
|
from the file, you must supply this value, along with the
|
2284
2284
|
width and height of the watermark, in the <a href=
|
2285
2285
|
"info.html#Info.size_eq">size</a> optional parameter to the
|
2286
|
-
<a href="#
|
2286
|
+
<a href="image1.html#read">read</a> method.</dd>
|
2287
2287
|
</dl>
|
2288
2288
|
|
2289
2289
|
<h4>Returns</h4>
|
@@ -2471,7 +2471,7 @@ p stats.red.stddev » 0.231399683489667
|
|
2471
2471
|
<span class="arg">y</span> and its neighbors that are not the
|
2472
2472
|
border color with copies of the <span class=
|
2473
2473
|
"arg">texture</span> image. Use the <a href=
|
2474
|
-
"imageattrs.html#
|
2474
|
+
"imageattrs.html#fuzz">fuzz</a> attribute to specify how
|
2475
2475
|
closely a pixel must match the border color.</p>
|
2476
2476
|
|
2477
2477
|
<h4>Arguments</h4>
|
@@ -2540,7 +2540,7 @@ p stats.red.stddev » 0.231399683489667
|
|
2540
2540
|
color with the <span class="arg">texture</span> image. By
|
2541
2541
|
default, the neighbor pixels must be exactly the same color as
|
2542
2542
|
the target pixel. Use the <a href=
|
2543
|
-
"imageattrs.html#
|
2543
|
+
"imageattrs.html#fuzz">fuzz</a> attribute to specify how
|
2544
2544
|
much difference is acceptable.</p>
|
2545
2545
|
|
2546
2546
|
<h4>Arguments</h4>
|
@@ -2734,8 +2734,8 @@ thumbnail = img.thumbnail(img.columns*0.09, img.rows*0.09)
|
|
2734
2734
|
|
2735
2735
|
<p>No required arguments, however you can specify the image
|
2736
2736
|
format (such as JPEG, PNG, etc.) and depth by calling the
|
2737
|
-
<a href="imageattrs.html#
|
2738
|
-
"imageattrs.html#
|
2737
|
+
<a href="imageattrs.html#format">format</a> and <a href=
|
2738
|
+
"imageattrs.html#depth">depth</a> attributes, as well as
|
2739
2739
|
other <a href="info.html">Image::Info</a> attributes as
|
2740
2740
|
appropriate, in a block associated with the method.</p>
|
2741
2741
|
|
@@ -2752,7 +2752,7 @@ thumbnail = img.thumbnail(img.columns*0.09, img.rows*0.09)
|
|
2752
2752
|
|
2753
2753
|
<h4>See also</h4>
|
2754
2754
|
|
2755
|
-
<p><a href="image1.html#
|
2755
|
+
<p><a href="image1.html#from_blob">from_blob</a></p>
|
2756
2756
|
|
2757
2757
|
<h4>Magick API</h4>
|
2758
2758
|
|
@@ -2771,8 +2771,8 @@ thumbnail = img.thumbnail(img.columns*0.09, img.rows*0.09)
|
|
2771
2771
|
|
2772
2772
|
<p>Returns the color name for a pixel. Unlike the
|
2773
2773
|
<code>Pixel#to_color</code> method, to_color uses the <a href=
|
2774
|
-
"imageattrs.html#
|
2775
|
-
"imageattrs.html#
|
2774
|
+
"imageattrs.html#depth">depth</a> and <a href=
|
2775
|
+
"imageattrs.html#matte">matte</a> attributes of the image
|
2776
2776
|
to determine the color name.</p>
|
2777
2777
|
|
2778
2778
|
<h4>Arguments</h4>
|
@@ -2795,7 +2795,7 @@ img.to_color(pixel)
|
|
2795
2795
|
|
2796
2796
|
<h4>See also</h4>
|
2797
2797
|
|
2798
|
-
<p><a href="struct.html#
|
2798
|
+
<p><a href="struct.html#Pixel_to_color">Pixel#to_color</a></p>
|
2799
2799
|
|
2800
2800
|
<h4>Magick API</h4>
|
2801
2801
|
|
@@ -2818,7 +2818,7 @@ img.to_color(pixel)
|
|
2818
2818
|
<span class="arg">color</span> to the value specified by
|
2819
2819
|
<span class="arg">opacity</span>. By default the pixel must
|
2820
2820
|
match exactly, but you can specify a tolerence level by setting
|
2821
|
-
the <a href="imageattrs.html#
|
2821
|
+
the <a href="imageattrs.html#fuzz">fuzz</a> attribute on
|
2822
2822
|
the image.</p>
|
2823
2823
|
|
2824
2824
|
<h4>Arguments</h4>
|
@@ -2860,7 +2860,7 @@ img.to_color(pixel)
|
|
2860
2860
|
<h4>See also</h4>
|
2861
2861
|
|
2862
2862
|
<p><a href="image2.html#matte_replace">matte_replace</a>,
|
2863
|
-
<a href="draw.html#
|
2863
|
+
<a href="draw.html#matte">Draw#matte</a></p>
|
2864
2864
|
|
2865
2865
|
<h4>Magick API</h4>
|
2866
2866
|
|
@@ -2900,9 +2900,9 @@ img.to_color(pixel)
|
|
2900
2900
|
|
2901
2901
|
<p><a href="image2.html#flip">flip</a>, <a href=
|
2902
2902
|
"image2.html#flop">flop</a>, <a href=
|
2903
|
-
"
|
2903
|
+
"#rotate">rotate</a>, <a href=
|
2904
2904
|
"#transpose_bang">transpose!</a>, <a href=
|
2905
|
-
"
|
2905
|
+
"#transverse">transverse</a></p>
|
2906
2906
|
|
2907
2907
|
<h4>Magick API</h4>
|
2908
2908
|
|
@@ -2959,8 +2959,8 @@ img.to_color(pixel)
|
|
2959
2959
|
|
2960
2960
|
<p><a href="image2.html#flip">flip</a>, <a href=
|
2961
2961
|
"image2.html#flop">flop</a>, <a href=
|
2962
|
-
"
|
2963
|
-
"
|
2962
|
+
"#rotate">rotate</a>, <a href=
|
2963
|
+
"#transpose">transpose</a>, <a href=
|
2964
2964
|
"#transverse_bang">transverse!</a></p>
|
2965
2965
|
|
2966
2966
|
<h4>Magick API</h4>
|
@@ -3119,9 +3119,9 @@ img.to_color(pixel)
|
|
3119
3119
|
|
3120
3120
|
<h4>See also</h4>
|
3121
3121
|
|
3122
|
-
<p><a href="
|
3122
|
+
<p><a href="image2.html#enhance">enhance</a>, <a href=
|
3123
3123
|
"image2.html#median_filter">median_filter</a>, <a href=
|
3124
|
-
"
|
3124
|
+
"#reduce_noise">reduce_noise</a>, <a href=
|
3125
3125
|
"#unsharp_mask_channel">unsharp_mask_channel</a></p>
|
3126
3126
|
|
3127
3127
|
<h4>Magick API</h4>
|
@@ -3196,9 +3196,9 @@ img.to_color(pixel)
|
|
3196
3196
|
|
3197
3197
|
<h4>See also</h4>
|
3198
3198
|
|
3199
|
-
<p><a href="
|
3199
|
+
<p><a href="image2.html#enhance">enhance</a>, <a href=
|
3200
3200
|
"image2.html#median_filter">median_filter</a>, <a href=
|
3201
|
-
"
|
3201
|
+
"#reduce_noise">reduce_noise</a>, <a href=
|
3202
3202
|
"#unsharp_mask">unsharp_mask</a></p>
|
3203
3203
|
|
3204
3204
|
<h4>Magick API</h4>
|
@@ -3715,7 +3715,7 @@ end
|
|
3715
3715
|
<p>If the argument is an open file, ×Magick will write
|
3716
3716
|
the image in its current format. You can force a different
|
3717
3717
|
format by setting the image's <a href=
|
3718
|
-
"imageattrs.html#
|
3718
|
+
"imageattrs.html#format">format</a> attribute.</p>
|
3719
3719
|
|
3720
3720
|
<h4>Arguments</h4>
|
3721
3721
|
|
@@ -3735,7 +3735,7 @@ end
|
|
3735
3735
|
|
3736
3736
|
<h4>See also</h4>
|
3737
3737
|
|
3738
|
-
<p><a href="ilist.html#
|
3738
|
+
<p><a href="ilist.html#write">ImageList#write</a></p>
|
3739
3739
|
|
3740
3740
|
<h4>Magick API</h4>
|
3741
3741
|
|