rmagick 2.1.0 → 2.2.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.
- data/ChangeLog +10 -0
- data/README.html +13 -13
- data/README.txt +11 -11
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +2 -2
- data/doc/draw.html +2 -2
- data/doc/ilist.html +2 -2
- data/doc/image1.html +2 -2
- data/doc/image2.html +129 -10
- data/doc/image3.html +86 -19
- data/doc/imageattrs.html +2 -2
- data/doc/imusage.html +2 -2
- data/doc/index.html +3 -3
- data/doc/info.html +2 -2
- data/doc/magick.html +2 -2
- data/doc/optequiv.html +29 -8
- data/doc/rvg.html +2 -2
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +2 -2
- data/doc/rvgpattern.html +2 -2
- 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 +2 -2
- data/doc/usage.html +12 -4
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/extconf.rb +28 -21
- data/ext/RMagick/rmagick.h +9 -6
- data/ext/RMagick/rmimage.c +216 -4
- data/ext/RMagick/rmmain.c +8 -5
- data/ext/RMagick/rmutil.c +9 -2
- data/lib/RMagick.rb +4 -2
- data/rmagick.gemspec +1 -1
- metadata +41 -34
data/ChangeLog
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
RMagick 2.2.0
|
2
|
+
o Added Image#opaque_channel, Image#paint_transparent (available with
|
3
|
+
ImageMagick 6.3.7-10)
|
4
|
+
o Added Image#liquid_rescale (available with ImageMagick 6.3.8-2)
|
5
|
+
o Added CMYColorspace ColorspaceType value
|
6
|
+
o Fixed bug #17148, compiler error message on Solaris (bug report by Trever
|
7
|
+
Wennblom)
|
8
|
+
o Fixed bug #17470, get_exif_by_number, get_exif_by_entry may fail when
|
9
|
+
called with one or more arguments
|
10
|
+
|
1
11
|
RMagick 2.1.0
|
2
12
|
o Added Image::Info#caption= attribute
|
3
13
|
o Rename Image#crop_resized, #crop_resized! to #resize_to_fill,
|
data/README.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title>RMagick 2.
|
4
|
+
<title>RMagick 2.2.0 README</title>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
6
6
|
<meta name="GENERATOR" content="BlueCloth">
|
7
7
|
</head>
|
8
8
|
<body>
|
9
|
-
<h1>RMagick 2.
|
9
|
+
<h1>RMagick 2.2.0 README</h1>
|
10
10
|
|
11
|
-
<h2>01/
|
11
|
+
<h2>01/30/08</h2>
|
12
12
|
|
13
13
|
<h2>Table Of Contents</h2>
|
14
14
|
|
@@ -40,13 +40,13 @@ ImageMagick image processing library.</p>
|
|
40
40
|
|
41
41
|
<p><strong>Author:</strong> Tim Hunter</p>
|
42
42
|
|
43
|
-
<p><strong>Email:</strong> <a href="&#
|
43
|
+
<p><strong>Email:</strong> <a href="mailto:rmagick@rubyforge.org">rmagick@rubyforge.org</a></p>
|
44
44
|
|
45
45
|
<p><strong>RubyForge:</strong> <a href="http://rubyforge.org/projects/rmagick/">http://rubyforge.org/projects/rmagick/</a></p>
|
46
46
|
|
47
47
|
<h2 id="new">What's new?</h2>
|
48
48
|
|
49
|
-
<p>RMagick 2.
|
49
|
+
<p>RMagick 2.2.0 incorporates all changes and bug fixes from RMagick 1.15.12.
|
50
50
|
Additionally,</p>
|
51
51
|
|
52
52
|
<ul>
|
@@ -84,7 +84,7 @@ instead.</li>
|
|
84
84
|
|
85
85
|
<h2 id="install">Installation</h2>
|
86
86
|
|
87
|
-
<p>The installation procedure for RMagick 2.
|
87
|
+
<p>The installation procedure for RMagick 2.2.0 is different from that used
|
88
88
|
in earlier releases. Before installing RMagick, you must install ImageMagick.
|
89
89
|
Complete and up-to-date instructions for installing ImageMagick on Linux,
|
90
90
|
*BSD, and other *nix-type O/S's are available
|
@@ -94,7 +94,7 @@ on OS X are available at <a href="http://rmagick.rubyforge.org/install-osx.html"
|
|
94
94
|
steps 1 and 2. After installing
|
95
95
|
ImageMagick, use the instructions in the next section to install RMagick.</p>
|
96
96
|
|
97
|
-
<h2 id="install">Installing RMagick 2.
|
97
|
+
<h2 id="install">Installing RMagick 2.2.0</h2>
|
98
98
|
|
99
99
|
<p>This release of RMagick uses Minero Aoki's setup.rb script for installation.
|
100
100
|
See the next section for configuration options. Usually you do not need to
|
@@ -104,15 +104,15 @@ his web site <a href="http://i.loveruby.net">http://i.loveruby.net</a></p>
|
|
104
104
|
<p>I assume you've already decompressed the tarball, or you wouldn't be reading
|
105
105
|
this. If you have not decompressed the tarball, do so with this command:</p>
|
106
106
|
|
107
|
-
<pre><code>tar xvzf RMagick-2.
|
107
|
+
<pre><code>tar xvzf RMagick-2.2.0-tar.gz
|
108
108
|
</code></pre>
|
109
109
|
|
110
110
|
<p>or</p>
|
111
111
|
|
112
|
-
<pre><code>tar xvjf RMagick-2.
|
112
|
+
<pre><code>tar xvjf RMagick-2.2.0-tar.bz2
|
113
113
|
</code></pre>
|
114
114
|
|
115
|
-
<p>Change to the RMagick-2.
|
115
|
+
<p>Change to the RMagick-2.2.0 directory. If you are not using any
|
116
116
|
configuration options (usually you don't need to) enter the command</p>
|
117
117
|
|
118
118
|
<pre><code>ruby setup.rb
|
@@ -179,9 +179,9 @@ the problem. Also see <a href="http://rmagick.rubyforge.org/install-faq.html#lib
|
|
179
179
|
|
180
180
|
<p>When make is running the examples, if you get a message like this:</p>
|
181
181
|
|
182
|
-
<pre><code>/home/you/RMagick-2.
|
182
|
+
<pre><code>/home/you/RMagick-2.2.0/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
183
183
|
cannot open shared object file: No such file or directory -
|
184
|
-
/home/you/RMagick-2.
|
184
|
+
/home/you/RMagick-2.2.0/ext/RMagick/RMagick.so (LoadError)
|
185
185
|
</code></pre>
|
186
186
|
|
187
187
|
<p>you probably do not have the directory in which the ImageMagick library
|
@@ -201,7 +201,7 @@ systems, see the documentation for the dynamic loading facility.</p>
|
|
201
201
|
|
202
202
|
<p>When make is running the examples, if you get a message like this:</p>
|
203
203
|
|
204
|
-
<pre><code>hook /home/me/src/RMagick-2.
|
204
|
+
<pre><code>hook /home/me/src/RMagick-2.2.0/./post-setup.rb failed:
|
205
205
|
No such file or directory - "/tmp/rmagick6872.6"
|
206
206
|
</code></pre>
|
207
207
|
|
data/README.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
RMagick 2.
|
1
|
+
RMagick 2.2.0 README
|
2
2
|
================================
|
3
|
-
01/
|
3
|
+
01/30/08
|
4
4
|
--------
|
5
5
|
|
6
6
|
Table Of Contents
|
@@ -35,7 +35,7 @@ __Email:__ <rmagick@rubyforge.org>
|
|
35
35
|
__RubyForge:__ <http://rubyforge.org/projects/rmagick/>
|
36
36
|
|
37
37
|
<h2 id="new">What's new?</h2>
|
38
|
-
RMagick 2.
|
38
|
+
RMagick 2.2.0 incorporates all changes and bug fixes from RMagick 1.15.12.
|
39
39
|
Additionally,
|
40
40
|
|
41
41
|
* The installation procedure is pure Ruby.
|
@@ -71,7 +71,7 @@ __ImageMagick__ 6.3.0 or later. You can get ImageMagick from
|
|
71
71
|
|
72
72
|
<h2 id="install">Installation</h2>
|
73
73
|
|
74
|
-
The installation procedure for RMagick 2.
|
74
|
+
The installation procedure for RMagick 2.2.0 is different from that used
|
75
75
|
in earlier releases. Before installing RMagick, you must install ImageMagick.
|
76
76
|
Complete and up-to-date instructions for installing ImageMagick on Linux,
|
77
77
|
*BSD, and other *nix-type O/S's are available
|
@@ -81,7 +81,7 @@ on OS X are available at <http://rmagick.rubyforge.org/install-osx.html>,
|
|
81
81
|
steps 1 and 2. After installing
|
82
82
|
ImageMagick, use the instructions in the next section to install RMagick.
|
83
83
|
|
84
|
-
<h2 id="install">Installing RMagick 2.
|
84
|
+
<h2 id="install">Installing RMagick 2.2.0</h2>
|
85
85
|
|
86
86
|
This release of RMagick uses Minero Aoki's setup.rb script for installation.
|
87
87
|
See the next section for configuration options. Usually you do not need to
|
@@ -91,13 +91,13 @@ his web site <http://i.loveruby.net>
|
|
91
91
|
I assume you've already decompressed the tarball, or you wouldn't be reading
|
92
92
|
this. If you have not decompressed the tarball, do so with this command:
|
93
93
|
|
94
|
-
tar xvzf RMagick-2.
|
94
|
+
tar xvzf RMagick-2.2.0-tar.gz
|
95
95
|
|
96
96
|
or
|
97
97
|
|
98
|
-
tar xvjf RMagick-2.
|
98
|
+
tar xvjf RMagick-2.2.0-tar.bz2
|
99
99
|
|
100
|
-
Change to the RMagick-2.
|
100
|
+
Change to the RMagick-2.2.0 directory. If you are not using any
|
101
101
|
configuration options (usually you don't need to) enter the command
|
102
102
|
|
103
103
|
ruby setup.rb
|
@@ -151,9 +151,9 @@ the problem. Also see <http://rmagick.rubyforge.org/install-faq.html#libmagick>.
|
|
151
151
|
#### Cannot open shared object file
|
152
152
|
When make is running the examples, if you get a message like this:
|
153
153
|
|
154
|
-
/home/you/RMagick-2.
|
154
|
+
/home/you/RMagick-2.2.0/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
155
155
|
cannot open shared object file: No such file or directory -
|
156
|
-
/home/you/RMagick-2.
|
156
|
+
/home/you/RMagick-2.2.0/ext/RMagick/RMagick.so (LoadError)
|
157
157
|
|
158
158
|
you probably do not have the directory in which the ImageMagick library
|
159
159
|
is installed in your load path. An easy way to fix this is to define
|
@@ -170,7 +170,7 @@ systems, see the documentation for the dynamic loading facility.
|
|
170
170
|
#### No such file or directory - "/tmp/rmagick6872.6"
|
171
171
|
When make is running the examples, if you get a message like this:
|
172
172
|
|
173
|
-
hook /home/me/src/RMagick-2.
|
173
|
+
hook /home/me/src/RMagick-2.2.0/./post-setup.rb failed:
|
174
174
|
No such file or directory - "/tmp/rmagick6872.6"
|
175
175
|
|
176
176
|
you probably do not have a temporary directory environment variable set. Set
|
data/doc/comtasks.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.
|
9
|
+
<title>RMagick 2.2.0: Common Tasks</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</head>
|
32
32
|
|
33
33
|
<body>
|
34
|
-
<h6 id="header">RMagick 2.
|
34
|
+
<h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
|
35
35
|
|
36
36
|
<div class="nav">
|
37
37
|
« <a href="optequiv.html">Prev</a> | <a href=
|
data/doc/constants.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.
|
9
|
+
<title>RMagick 2.2.0: Constants</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
</head>
|
62
62
|
|
63
63
|
<body>
|
64
|
-
<h6 id="header">RMagick 2.
|
64
|
+
<h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
|
65
65
|
|
66
66
|
<div class="nav">
|
67
67
|
« <a href="info.html">Prev</a> | <a href=
|
data/doc/draw.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.
|
9
|
+
<title>RMagick 2.2.0: 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 2.
|
28
|
+
<h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
|
29
29
|
|
30
30
|
<div class="nav">
|
31
31
|
« <a href="image3.html">Prev</a> | <a href=
|
data/doc/ilist.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.
|
9
|
+
<title>RMagick 2.2.0: 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 2.
|
23
|
+
<h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
|
24
24
|
|
25
25
|
<div class="nav">
|
26
26
|
« <a href="magick.html">Prev</a> | <a href=
|
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.
|
9
|
+
<title>RMagick 2.2.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.
|
51
|
+
<h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
|
52
52
|
|
53
53
|
<div class="nav">
|
54
54
|
« <a href="imageattrs.html">Prev</a> | <a href=
|
data/doc/image2.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.
|
9
|
+
<title>RMagick 2.2.0: class Image (instance methods e-o)</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 2.
|
50
|
+
<h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
|
51
51
|
|
52
52
|
<div class="nav">
|
53
53
|
« <a href="image1.html">Prev</a> | <a href=
|
@@ -153,6 +153,8 @@ td.ds {
|
|
153
153
|
|
154
154
|
<li><a href="#linear_stretch">linear_stretch</a></li>
|
155
155
|
|
156
|
+
<li><a href="#liquid_rescale">liquid_rescale</a></li>
|
157
|
+
|
156
158
|
<li><a href="#magnify">magnify</a></li>
|
157
159
|
|
158
160
|
<li><a href="#magnify_bang">magnify!</a></li>
|
@@ -199,6 +201,8 @@ td.ds {
|
|
199
201
|
|
200
202
|
<li><a href="#opaque">opaque</a></li>
|
201
203
|
|
204
|
+
<li><a href="#opaque_channel">opaque_channel</a></li>
|
205
|
+
|
202
206
|
<li><a href="#opaque_q">opaque?</a></li>
|
203
207
|
|
204
208
|
<li><a href="#ordered_dither">ordered_dither</a></li>
|
@@ -989,14 +993,15 @@ scanline = img.export_pixels(0, r, img.columns, 1, "RGB");
|
|
989
993
|
|
990
994
|
<p class="rollover"><a href=
|
991
995
|
"javascript:popup('frame.rb.html')">
|
992
|
-
<!-- This img tag displays the original image when
|
996
|
+
<!-- This img tag displays the original image when moused over -->
|
993
997
|
<img style="padding:25px; display:none" id="frameless"
|
994
998
|
onmouseout="this.style.display='none';framed.style.display='';"
|
995
999
|
src="ex/images/Flower_Hat.jpg" alt="frame example" title=
|
996
|
-
"Click to see the example script"
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
+
"Click to see the example script" />
|
1001
|
+
<!-- This img tag displays the framed image when the mouse is not over -->
|
1002
|
+
<img onmouseover=
|
1003
|
+
"this.style.display='none';frameless.style.display='';" src=
|
1004
|
+
"ex/frame.jpg" alt="frame example" /></a> <img src=
|
1000
1005
|
"ex/images/spin.gif" alt="" style="margin-bottom: 280px" title=
|
1001
1006
|
"Mouse over the example to see the original image" /></p>
|
1002
1007
|
|
@@ -2384,6 +2389,57 @@ img.level(white_point, gamma, black_point) -> image # wrong!
|
|
2384
2389
|
<p>LinearStretchImage</p>
|
2385
2390
|
</div>
|
2386
2391
|
|
2392
|
+
<div class="sig">
|
2393
|
+
<h3 id="liquid_rescale">liquid_rescale</h3>
|
2394
|
+
|
2395
|
+
<p><span class="arg">img</span>.liquid_rescale(<span class=
|
2396
|
+
"arg">new_width</span>, <span class="arg">new_height</span>,
|
2397
|
+
<span class="arg">delta_x</span>=0.0, <span class=
|
2398
|
+
"arg">rigidity</span>=0.0) -> <em>image</em></p>
|
2399
|
+
</div>
|
2400
|
+
|
2401
|
+
<div class="desc">
|
2402
|
+
<h4>Description</h4>
|
2403
|
+
|
2404
|
+
<p><span class="imquote">Rescale image with seam
|
2405
|
+
carving.</span> To use this method, you must have installed and
|
2406
|
+
configured ImageMagick to use the <a href=
|
2407
|
+
"http://liblqr.wikidot.com/">Liquid Rescale Library</a>.</p>
|
2408
|
+
|
2409
|
+
<h4>Arguments</h4>
|
2410
|
+
|
2411
|
+
<dl>
|
2412
|
+
<dt>new_width, new_height</dt>
|
2413
|
+
|
2414
|
+
<dd>
|
2415
|
+
<p>The desired width and height. Should not exceed 200% of
|
2416
|
+
the original dimension.</p>
|
2417
|
+
</dd>
|
2418
|
+
|
2419
|
+
<dt>delta_x</dt>
|
2420
|
+
|
2421
|
+
<dd>
|
2422
|
+
<p class="imquote">Maximum seam transversal step (0 means
|
2423
|
+
straight seams).</p>
|
2424
|
+
</dd>
|
2425
|
+
|
2426
|
+
<dt>rigidity</dt>
|
2427
|
+
|
2428
|
+
<dd>
|
2429
|
+
<p class="imquote">Introduce a bias for non-straight seams
|
2430
|
+
(typically 0).</p>
|
2431
|
+
</dd>
|
2432
|
+
</dl>
|
2433
|
+
|
2434
|
+
<h4>Returns</h4>
|
2435
|
+
|
2436
|
+
<p>A new image</p>
|
2437
|
+
|
2438
|
+
<h4>Magick API</h4>
|
2439
|
+
|
2440
|
+
<p>LiquidRescaleImage</p>
|
2441
|
+
</div>
|
2442
|
+
|
2387
2443
|
<div class="sig">
|
2388
2444
|
<h3 id="magnify">magnify</h3>
|
2389
2445
|
|
@@ -3147,12 +3203,75 @@ img = img.opaque('white', 'red')
|
|
3147
3203
|
|
3148
3204
|
<h4>See also</h4>
|
3149
3205
|
|
3150
|
-
<p><a href=
|
3151
|
-
"
|
3206
|
+
<p><a href="image1.html#color_floodfill">color_floodfill</a>,
|
3207
|
+
<a href="#opaque_channel">opaque_channel</a></p>
|
3208
|
+
|
3209
|
+
<h4>Magick API</h4>
|
3210
|
+
|
3211
|
+
<p>OpaquePaintImageChannel</p>
|
3212
|
+
</div>
|
3213
|
+
|
3214
|
+
<div class="sig">
|
3215
|
+
<h3 id="opaque_channel">opaque_channel</h3>
|
3216
|
+
|
3217
|
+
<p><span class="arg">img</span>.opaque_channel(<span class=
|
3218
|
+
"arg">target</span>, <span class="arg">fill</span>,
|
3219
|
+
<span class="arg">invert</span>=false, <span class=
|
3220
|
+
"arg">fuzz</span>=<span class="arg">img</span>.fuzz [,
|
3221
|
+
<span class="arg">channel</span>...]) -> <em>image</em></p>
|
3222
|
+
</div>
|
3223
|
+
|
3224
|
+
<div class="desc">
|
3225
|
+
<h4>Description</h4>
|
3226
|
+
|
3227
|
+
<p>Changes all pixels having the target color to the fill
|
3228
|
+
color. If <span class="arg">invert</span> is true, changes all
|
3229
|
+
the pixels that are <em>not</em> the target color to the fill
|
3230
|
+
color.</p>
|
3231
|
+
|
3232
|
+
<h4>Arguments</h4>
|
3233
|
+
|
3234
|
+
<dl>
|
3235
|
+
<dt>target</dt>
|
3236
|
+
|
3237
|
+
<dd>The color to be replaced. May be a color name or a
|
3238
|
+
<a href="struct.html#Pixel">Pixel</a></dd>
|
3239
|
+
|
3240
|
+
<dt>fill</dt>
|
3241
|
+
|
3242
|
+
<dd>The replacement color. May be a color name or a <a href=
|
3243
|
+
"struct.html#Pixel">Pixel</a></dd>
|
3244
|
+
|
3245
|
+
<dt>invert</dt>
|
3246
|
+
|
3247
|
+
<dd>If true, the target pixels are all the pixels that are
|
3248
|
+
not the target color. The default is the value of the target
|
3249
|
+
image's <code>fuzz</code> attribute</dd>
|
3250
|
+
|
3251
|
+
<dt>fuzz</dt>
|
3252
|
+
|
3253
|
+
<dd>Colors within this distance are considered equal to the
|
3254
|
+
target color.</dd>
|
3255
|
+
|
3256
|
+
<dt>channel...</dt>
|
3257
|
+
|
3258
|
+
<dd>0 or more <a href=
|
3259
|
+
"constants.html#ChannelType">ChannelType</a> arguments. If no
|
3260
|
+
channels are specified, the default is <a href=
|
3261
|
+
"constants.html#ChannelType">DefaultChannels</a>.</dd>
|
3262
|
+
</dl>
|
3263
|
+
|
3264
|
+
<h4>Returns</h4>
|
3265
|
+
|
3266
|
+
<p>A new image</p>
|
3267
|
+
|
3268
|
+
<h4>See also</h4>
|
3269
|
+
|
3270
|
+
<p><a href="#opaque">opaque</a></p>
|
3152
3271
|
|
3153
3272
|
<h4>Magick API</h4>
|
3154
3273
|
|
3155
|
-
<p>
|
3274
|
+
<p>OpaquePaintImageChannel</p>
|
3156
3275
|
</div>
|
3157
3276
|
|
3158
3277
|
<div class="sig">
|