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.
- data/ChangeLog +9 -0
- data/README.html +13 -13
- data/README.txt +11 -11
- data/doc/comtasks.html +25 -4
- data/doc/constants.html +8 -8
- data/doc/draw.html +112 -116
- data/doc/ex/axes.rb +1 -1
- data/doc/ex/clip_path.rb +5 -4
- data/doc/ex/get_type_metrics.rb +2 -2
- data/doc/ex/resize_to_fill.rb +10 -0
- data/doc/ex/{crop_resized.rb → resize_to_fit.rb} +2 -2
- data/doc/ilist.html +79 -82
- data/doc/image1.html +213 -322
- data/doc/image2.html +123 -136
- data/doc/image3.html +340 -198
- data/doc/imageattrs.html +211 -192
- data/doc/imusage.html +6 -7
- data/doc/index.html +9 -16
- data/doc/info.html +90 -61
- data/doc/magick.html +6 -6
- data/doc/optequiv.html +26 -13
- data/doc/rvg.html +22 -23
- data/doc/rvgclip.html +15 -16
- data/doc/rvggroup.html +23 -23
- data/doc/rvgimage.html +18 -19
- data/doc/rvgpattern.html +101 -82
- data/doc/rvgshape.html +14 -21
- data/doc/rvgstyle.html +4 -4
- data/doc/rvgtext.html +10 -9
- data/doc/rvgtspan.html +12 -11
- data/doc/rvgtut.html +4 -4
- data/doc/rvguse.html +4 -4
- data/doc/rvgxform.html +9 -9
- data/doc/struct.html +193 -195
- data/doc/usage.html +12 -10
- data/examples/constitute.rb +7 -0
- data/ext/RMagick/MANIFEST +4 -4
- data/ext/RMagick/extconf.rb +54 -42
- data/ext/RMagick/rmagick.h +34 -11
- data/ext/RMagick/rmdraw.c +6 -6
- data/ext/RMagick/rmfill.c +2 -2
- data/ext/RMagick/rmilist.c +9 -9
- data/ext/RMagick/rmimage.c +110 -106
- data/ext/RMagick/rminfo.c +33 -14
- data/ext/RMagick/rmmain.c +11 -21
- data/ext/RMagick/rmutil.c +51 -11
- data/lib/RMagick.rb +25 -18
- data/post-clean.rb +3 -3
- data/post-install.rb +4 -5
- data/rmagick.gemspec +5 -3
- data/uninstall.rb +6 -6
- metadata +7 -7
- data/doc/ex/Adispatch.rb +0 -43
- data/doc/ex/Zconstitute.rb +0 -9
data/ChangeLog
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
RMagick 2.1.0
|
2
|
+
o Added Image::Info#caption= attribute
|
3
|
+
o Rename Image#crop_resized, #crop_resized! to #resize_to_fill,
|
4
|
+
#resize_to_fill!. Add aliases for the old names.
|
5
|
+
o Fix bug #16776, in the axes.rb example the last 2 arguments to
|
6
|
+
border.rectangle are swapped (bug report by Alain Feler)
|
7
|
+
o Fix bug #16931, apostrophe in #error directive causes error in some
|
8
|
+
versions of GCC (bug report by Justin Dossey)
|
9
|
+
|
1
10
|
RMagick 2.0.0
|
2
11
|
o Replaced configure/make/make install with standard Ruby setup.rb,
|
3
12
|
extconf.rb
|
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.1.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.1.0 README</h1>
|
10
10
|
|
11
|
-
<h2>
|
11
|
+
<h2>01/09/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.1.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.1.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.1.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.1.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.1.0-tar.bz2
|
113
113
|
</code></pre>
|
114
114
|
|
115
|
-
<p>Change to the RMagick-2.
|
115
|
+
<p>Change to the RMagick-2.1.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.1.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.1.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.1.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.1.0 README
|
2
2
|
================================
|
3
|
-
|
3
|
+
01/09/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.1.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.1.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.1.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.1.0-tar.gz
|
95
95
|
|
96
96
|
or
|
97
97
|
|
98
|
-
tar xvjf RMagick-2.
|
98
|
+
tar xvjf RMagick-2.1.0-tar.bz2
|
99
99
|
|
100
|
-
Change to the RMagick-2.
|
100
|
+
Change to the RMagick-2.1.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.1.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.1.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.1.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
@@ -4,9 +4,9 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
6
6
|
<meta name="generator" content=
|
7
|
-
"HTML Tidy for Linux/x86 (vers
|
7
|
+
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.1.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.1.0 User's Guide and Reference</h6>
|
35
35
|
|
36
36
|
<div class="nav">
|
37
37
|
« <a href="optequiv.html">Prev</a> | <a href=
|
@@ -153,6 +153,18 @@ thumb.write "thumb.gif"
|
|
153
153
|
<code>resize</code> if the thumbnail is less than 10% of the size
|
154
154
|
of the original image.</p>
|
155
155
|
|
156
|
+
<h3>flickr-style thumbnails</h3>
|
157
|
+
|
158
|
+
<p><a href="http://www.flickr.com">flickr</a> thumbnails are 75
|
159
|
+
pixels wide and 75 pixels tall. If the original image isn't
|
160
|
+
square, the thumbnail is cropped in its larger dimension so that
|
161
|
+
the image isn't distorted. You can get make this kind of
|
162
|
+
thumbnail with the <a href=
|
163
|
+
"image3.html#resize_to_fill">resize_to_fill</a> method.</p>
|
164
|
+
<pre class="example">
|
165
|
+
thumb = img.resize_to_fill(75, 75)
|
166
|
+
</pre>
|
167
|
+
|
156
168
|
<h2 id="resizing">Resizing to a maximum (or minimum) size</h2>
|
157
169
|
|
158
170
|
<p>Say you need to make all your thumbnails no bigger than 64x64
|
@@ -177,6 +189,15 @@ thumb.write "thumb.gif"
|
|
177
189
|
value from the block. The <code>change_geometry</code> method
|
178
190
|
then returns that value to its caller.</p>
|
179
191
|
|
192
|
+
<h3>Simple thumbnails</h3>
|
193
|
+
|
194
|
+
<p>If you just want to make sure your thumbnail is no bigger than
|
195
|
+
a certain width and height, use the <a href=
|
196
|
+
"image3.html#resize_to_fit">resize_to_fit</a> method.</p>
|
197
|
+
<pre class="example">
|
198
|
+
thumb = img.resize_to_fit(75, 75)
|
199
|
+
</pre>
|
200
|
+
|
180
201
|
<h2><a id="blob" name="blob">Writing to or reading from a string
|
181
202
|
instead of a file</a></h2>
|
182
203
|
|
@@ -255,7 +276,7 @@ img.write("myimage.jpg") { self.quality = 50 }
|
|
255
276
|
</div>
|
256
277
|
<hr />
|
257
278
|
|
258
|
-
<p class="spacer"
|
279
|
+
<p class="spacer"></p>
|
259
280
|
|
260
281
|
<div class="nav">
|
261
282
|
« <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.1.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.1.0 User's Guide and Reference</h6>
|
65
65
|
|
66
66
|
<div class="nav">
|
67
67
|
« <a href="info.html">Prev</a> | <a href=
|
@@ -155,13 +155,13 @@
|
|
155
155
|
|
156
156
|
<dd>An extended form of the <code>Version</code> constant with
|
157
157
|
the format shown here:<br />
|
158
|
-
<code>This is RMagick
|
159
|
-
Copyright (C)
|
160
|
-
Built with ImageMagick 6.
|
158
|
+
<code>This is RMagick 2.0.0 ($Date: 2008/01/07 00:03:59 $)
|
159
|
+
Copyright (C) 2008 by Timothy P. Hunter<br />
|
160
|
+
Built with ImageMagick 6.3.7 01/05/08 Q16
|
161
161
|
http://www.imagemagick.org<br />
|
162
|
-
Built for ruby 1.8.
|
162
|
+
Built for ruby 1.8.6<br />
|
163
163
|
Web page: http://rmagick.rubyforge.org<br />
|
164
|
-
Email: rmagick@rubyforge.org
|
164
|
+
Email: rmagick@rubyforge.org</code></dd>
|
165
165
|
|
166
166
|
<dt>MagickVersion</dt>
|
167
167
|
|
@@ -216,7 +216,7 @@
|
|
216
216
|
<dt>Version</dt>
|
217
217
|
|
218
218
|
<dd>The RMagick version string. This has the form:<br />
|
219
|
-
<code>RMagick
|
219
|
+
<code>RMagick 2.0.0</code></dd>
|
220
220
|
</dl>
|
221
221
|
|
222
222
|
<h3 class="const" id="AlignType">AlignType</h3>
|
data/doc/draw.html
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
5
|
<head>
|
6
6
|
<meta name="generator" content=
|
7
|
-
"HTML Tidy for Linux/x86 (vers
|
7
|
+
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 2.
|
9
|
+
<title>RMagick 2.1.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.1.0 User's Guide and Reference</h6>
|
29
29
|
|
30
30
|
<div class="nav">
|
31
31
|
« <a href="image3.html">Prev</a> | <a href=
|
@@ -247,8 +247,8 @@
|
|
247
247
|
<div class="sig">
|
248
248
|
<h3 id="new">new</h3>
|
249
249
|
|
250
|
-
<p>
|
251
|
-
|
250
|
+
<p>Draw.new <span class="arg">[ { optional parameters
|
251
|
+
} ]</span> -> <em>draw</em></p>
|
252
252
|
</div>
|
253
253
|
|
254
254
|
<div class="desc">
|
@@ -280,7 +280,7 @@ gc = Draw.new
|
|
280
280
|
"arg">height</span>, <span class="arg">x</span>, <span class=
|
281
281
|
"arg">y</span>, <span class="arg">text</span>) <span class=
|
282
282
|
"arg">[ { additional parameters } ]</span> ->
|
283
|
-
<em>
|
283
|
+
<em>self</em></p>
|
284
284
|
</div>
|
285
285
|
|
286
286
|
<div class="desc">
|
@@ -531,7 +531,8 @@ title.annotate(montage, 0,0,0,40, 'Named Colors') {
|
|
531
531
|
<div class="sig">
|
532
532
|
<h3 id="clone">clone</h3>
|
533
533
|
|
534
|
-
<p><span class="arg">draw</span>.clone ->
|
534
|
+
<p><span class="arg">draw</span>.clone ->
|
535
|
+
<em>other_draw</em></p>
|
535
536
|
</div>
|
536
537
|
|
537
538
|
<div class="desc">
|
@@ -549,7 +550,7 @@ title.annotate(montage, 0,0,0,40, 'Named Colors') {
|
|
549
550
|
<h3 id="draw">draw</h3>
|
550
551
|
|
551
552
|
<p><span class="arg">draw</span>.draw(<span class=
|
552
|
-
"arg">img</span>) -> <em>
|
553
|
+
"arg">img</span>) -> <em>self</em></p>
|
553
554
|
</div>
|
554
555
|
|
555
556
|
<div class="desc">
|
@@ -581,7 +582,8 @@ title.annotate(montage, 0,0,0,40, 'Named Colors') {
|
|
581
582
|
<div class="sig">
|
582
583
|
<h3 id="dup">dup</h3>
|
583
584
|
|
584
|
-
<p><span class="arg">draw</span>.dup ->
|
585
|
+
<p><span class="arg">draw</span>.dup ->
|
586
|
+
<em>other_draw</em></p>
|
585
587
|
</div>
|
586
588
|
|
587
589
|
<div class="desc">
|
@@ -605,16 +607,16 @@ title.annotate(montage, 0,0,0,40, 'Named Colors') {
|
|
605
607
|
|
606
608
|
<p><span class=
|
607
609
|
"arg">draw</span>.get_multiline_type_metrics([<span class=
|
608
|
-
"arg">
|
609
|
-
<em>
|
610
|
+
"arg">image</span>,] <span class="arg">string</span>) ->
|
611
|
+
<em>type_metrics</em></p>
|
610
612
|
</div>
|
611
613
|
|
612
614
|
<div class="sig">
|
613
615
|
<h3 id="get_type_metrics">get_type_metrics</h3>
|
614
616
|
|
615
617
|
<p><span class="arg">draw</span>.get_type_metrics([<span class=
|
616
|
-
"arg">
|
617
|
-
<em>
|
618
|
+
"arg">image</span>,] <span class="arg">string</span>) ->
|
619
|
+
<em>type_metrics</em></p>
|
618
620
|
</div>
|
619
621
|
|
620
622
|
<div class="desc">
|
@@ -680,22 +682,21 @@ title.annotate(montage, 0,0,0,40, 'Named Colors') {
|
|
680
682
|
<dt>string</dt>
|
681
683
|
|
682
684
|
<dd>The string to be rendered. If <span class=
|
683
|
-
"arg">
|
684
|
-
|
685
|
-
|
685
|
+
"arg">img</span> is specified, the string may contain special
|
686
|
+
characters that refer to the image attributes. See <a href=
|
687
|
+
"#spec_chars_table">this</a> table.</dd>
|
686
688
|
</dl>
|
687
689
|
|
688
690
|
<h4>Returns</h4>
|
689
691
|
|
690
|
-
<p>A
|
691
|
-
|
692
|
-
<a href=
|
692
|
+
<p>A TypeMetric struct. This structure has the following
|
693
|
+
attributes. (The descriptions are taken from the <a href=
|
693
694
|
"http://www.imagemagick.org/Magick++/TypeMetric.html">Magick++</a>
|
694
695
|
documentation and source code.)</p>
|
695
696
|
|
696
697
|
<table summary="type metric attributes" class="simple_table">
|
697
698
|
<caption>
|
698
|
-
|
699
|
+
TypeMetric attributes
|
699
700
|
</caption>
|
700
701
|
|
701
702
|
<tr>
|
@@ -767,13 +768,13 @@ title.annotate(montage, 0,0,0,40, 'Named Colors') {
|
|
767
768
|
<h3 id="inspect">inspect</h3>
|
768
769
|
|
769
770
|
<p><span class="arg">draw</span>.inspect ->
|
770
|
-
<em>
|
771
|
+
<em>string</em></p>
|
771
772
|
</div>
|
772
773
|
|
773
774
|
<div class="desc">
|
774
775
|
<h4>Description</h4>
|
775
776
|
|
776
|
-
<p>
|
777
|
+
<p>Returns the list of primitives that have been added to the
|
777
778
|
<code>draw</code> object. This is very handy for debugging.</p>
|
778
779
|
|
779
780
|
<h4>Example</h4>
|
@@ -795,7 +796,7 @@ draw.inspect »
|
|
795
796
|
<h3 id="affine">affine</h3>
|
796
797
|
|
797
798
|
<p><span class="arg">draw</span>.affine(<span class="arg">sx,
|
798
|
-
rx, ry, sy, tx, ty</span>) -> <em>
|
799
|
+
rx, ry, sy, tx, ty</span>) -> <em>self</em></p>
|
799
800
|
</div>
|
800
801
|
|
801
802
|
<div class="desc">
|
@@ -851,7 +852,7 @@ draw.inspect »
|
|
851
852
|
|
852
853
|
<p><span class="arg">draw</span>.arc(<span class="arg">start_x,
|
853
854
|
start_y, end_x, end_y, start_degrees, end_degrees</span>) ->
|
854
|
-
<em>
|
855
|
+
<em>self</em></p>
|
855
856
|
</div>
|
856
857
|
|
857
858
|
<div class="desc">
|
@@ -903,7 +904,7 @@ draw.inspect »
|
|
903
904
|
"arg">cx1</span>, <span class="arg">cy1</span>, <span class=
|
904
905
|
"arg">cx2</span>, <span class="arg">cy2</span>, <span class=
|
905
906
|
"arg">x2</span>, <span class="arg">y2</span>...) ->
|
906
|
-
<em>
|
907
|
+
<em>self</em></p>
|
907
908
|
</div>
|
908
909
|
|
909
910
|
<div class="desc">
|
@@ -989,7 +990,7 @@ draw.inspect »
|
|
989
990
|
|
990
991
|
<p><span class="arg">draw</span>.circle(<span class=
|
991
992
|
"arg">origin_x, origin_y, perim_x, perim_y</span>) ->
|
992
|
-
<em>
|
993
|
+
<em>self</em></p>
|
993
994
|
</div>
|
994
995
|
|
995
996
|
<p>self</p>
|
@@ -1028,7 +1029,7 @@ draw.inspect »
|
|
1028
1029
|
<h3 id="clip_path">clip_path</h3>
|
1029
1030
|
|
1030
1031
|
<p><span class="arg">draw</span>.clip_path(<span class=
|
1031
|
-
"arg">pathname</span>) -> <em>
|
1032
|
+
"arg">pathname</span>) -> <em>self</em></p>
|
1032
1033
|
</div>
|
1033
1034
|
|
1034
1035
|
<div class="desc">
|
@@ -1081,7 +1082,7 @@ gc.draw
|
|
1081
1082
|
|
1082
1083
|
<p><span class=
|
1083
1084
|
"arg">draw</span>.clip_rule(<code>"evenodd"</code> or
|
1084
|
-
<code>"nonzero"</code>) -> <em>
|
1085
|
+
<code>"nonzero"</code>) -> <em>self</em></p>
|
1085
1086
|
</div>
|
1086
1087
|
|
1087
1088
|
<div class="desc">
|
@@ -1109,7 +1110,7 @@ gc.draw
|
|
1109
1110
|
<p><span class=
|
1110
1111
|
"arg">draw</span>.clip_units(<code>"userSpace"</code>
|
1111
1112
|
<span class="arg">or</span> <code>"userSpaceOnUse"</code> or
|
1112
|
-
<code>"objectSpace"</code>) -> <em>
|
1113
|
+
<code>"objectSpace"</code>) -> <em>self</em></p>
|
1113
1114
|
</div>
|
1114
1115
|
|
1115
1116
|
<div class="desc">
|
@@ -1136,7 +1137,7 @@ gc.draw
|
|
1136
1137
|
|
1137
1138
|
<p><span class="arg">draw</span>.color(<span class=
|
1138
1139
|
"arg">x</span>, <span class="arg">y</span>, <span class=
|
1139
|
-
"arg">
|
1140
|
+
"arg">paint_method</span>) -> <em>self</em></p>
|
1140
1141
|
</div>
|
1141
1142
|
|
1142
1143
|
<div class="desc">
|
@@ -1160,7 +1161,7 @@ gc.draw
|
|
1160
1161
|
<h4>Example</h4>
|
1161
1162
|
<pre>
|
1162
1163
|
draw.border_color = 'black'
|
1163
|
-
draw.color(x, y,
|
1164
|
+
draw.color(x, y, FillToBorderMethod)
|
1164
1165
|
</pre>
|
1165
1166
|
|
1166
1167
|
<h4>See Also</h4>
|
@@ -1175,8 +1176,8 @@ gc.draw
|
|
1175
1176
|
"arg">x</span>, <span class="arg">y</span>, <span class=
|
1176
1177
|
"arg">width</span>, <span class="arg">height</span>,
|
1177
1178
|
<span class="arg">composite_image</span>, <span class=
|
1178
|
-
"arg">op</span>=<code>
|
1179
|
-
<em>
|
1179
|
+
"arg">op</span>=<code>OverCompositeOp</code>) ->
|
1180
|
+
<em>self</em></p>
|
1180
1181
|
</div>
|
1181
1182
|
|
1182
1183
|
<div class="desc">
|
@@ -1236,7 +1237,7 @@ gc.draw
|
|
1236
1237
|
<h3 id="decorate">decorate</h3>
|
1237
1238
|
|
1238
1239
|
<p><span class="arg">draw</span>.decorate(<span class=
|
1239
|
-
"arg">
|
1240
|
+
"arg">decoration</span>) -> <em>self</em></p>
|
1240
1241
|
</div>
|
1241
1242
|
|
1242
1243
|
<div class="desc">
|
@@ -1255,7 +1256,7 @@ gc.draw
|
|
1255
1256
|
|
1256
1257
|
<h4>Example</h4>
|
1257
1258
|
<pre>
|
1258
|
-
draw.decorate(
|
1259
|
+
draw.decorate(LineThroughDecoration)
|
1259
1260
|
</pre>
|
1260
1261
|
</div>
|
1261
1262
|
|
@@ -1263,8 +1264,8 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1263
1264
|
<h3 id="define_clip_path">define_clip_path</h3>
|
1264
1265
|
|
1265
1266
|
<p><span class="arg">draw</span>.define_clip_path(<span class=
|
1266
|
-
"arg">
|
1267
|
-
<em>
|
1267
|
+
"arg">string</span>) { <span class="arg">block</span> } ->
|
1268
|
+
<em>self</em></p>
|
1268
1269
|
</div>
|
1269
1270
|
|
1270
1271
|
<div class="desc">
|
@@ -1302,7 +1303,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1302
1303
|
"arg">origin_y</span>, <span class="arg">width</span>,
|
1303
1304
|
<span class="arg">height</span>, <span class=
|
1304
1305
|
"arg">arc_start</span>, <span class="arg">arc_end</span>) ->
|
1305
|
-
<em>
|
1306
|
+
<em>self</em></p>
|
1306
1307
|
</div>
|
1307
1308
|
|
1308
1309
|
<div class="desc">
|
@@ -1351,7 +1352,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1351
1352
|
<h3 id="encoding">encoding</h3>
|
1352
1353
|
|
1353
1354
|
<p><span class="arg">draw</span>.encoding(<span class=
|
1354
|
-
"arg">
|
1355
|
+
"arg">string</span>) -> <em>self</em></p>
|
1355
1356
|
</div>
|
1356
1357
|
|
1357
1358
|
<div class="desc">
|
@@ -1374,7 +1375,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1374
1375
|
<h3 id="fill">fill</h3>
|
1375
1376
|
|
1376
1377
|
<p><span class="arg">draw</span>.fill(<span class=
|
1377
|
-
"arg">
|
1378
|
+
"arg">string</span>) -> <em>self</em></p>
|
1378
1379
|
</div>
|
1379
1380
|
|
1380
1381
|
<div class="desc">
|
@@ -1406,8 +1407,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1406
1407
|
<h3 id="fill_opacity">fill_opacity</h3>
|
1407
1408
|
|
1408
1409
|
<p><span class="arg">draw</span>.fill_opacity(<span class=
|
1409
|
-
"arg">
|
1410
|
-
<em>draw</em></p>
|
1410
|
+
"arg">float</span> or <em>string</em>) -> <em>self</em></p>
|
1411
1411
|
</div>
|
1412
1412
|
|
1413
1413
|
<div class="desc">
|
@@ -1438,7 +1438,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1438
1438
|
|
1439
1439
|
<p><span class=
|
1440
1440
|
"arg">draw</span>.fill_rule(<code>"evenodd"</code> or
|
1441
|
-
<code>"nonzero"</code>) -> <em>
|
1441
|
+
<code>"nonzero"</code>) -> <em>self</em></p>
|
1442
1442
|
</div>
|
1443
1443
|
|
1444
1444
|
<div class="desc">
|
@@ -1463,9 +1463,8 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1463
1463
|
<div class="sig">
|
1464
1464
|
<h3 id="font">font</h3>
|
1465
1465
|
|
1466
|
-
<p><span class=
|
1467
|
-
"arg"
|
1468
|
-
<em>draw</em></p>
|
1466
|
+
<p><span class="arg">draw</span>.font(<span class=
|
1467
|
+
"arg">string</span>) -> <em>self</em></p>
|
1469
1468
|
</div>
|
1470
1469
|
|
1471
1470
|
<div class="desc">
|
@@ -1496,7 +1495,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1496
1495
|
<h3 id="font_family">font_family</h3>
|
1497
1496
|
|
1498
1497
|
<p><span class="arg">draw</span>.font_family(<span class=
|
1499
|
-
"arg">
|
1498
|
+
"arg">string</span>) -> <em>self</em></p>
|
1500
1499
|
</div>
|
1501
1500
|
|
1502
1501
|
<div class="desc">
|
@@ -1521,7 +1520,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1521
1520
|
<h3 id="font_stretch">font_stretch</h3>
|
1522
1521
|
|
1523
1522
|
<p><span class="arg">draw</span>.font_stretch(<span class=
|
1524
|
-
"arg">
|
1523
|
+
"arg">stretch</span>) -> <em>self</em></p>
|
1525
1524
|
</div>
|
1526
1525
|
|
1527
1526
|
<div class="desc">
|
@@ -1543,7 +1542,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1543
1542
|
<h3 id="font_style">font_style</h3>
|
1544
1543
|
|
1545
1544
|
<p><span class="arg">draw</span>.font_style(<span class=
|
1546
|
-
"arg">
|
1545
|
+
"arg">style</span>) -> <em>self</em></p>
|
1547
1546
|
</div>
|
1548
1547
|
|
1549
1548
|
<div class="desc">
|
@@ -1565,7 +1564,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1565
1564
|
<h3 id="font_weight">font_weight</h3>
|
1566
1565
|
|
1567
1566
|
<p><span class="arg">draw</span>.font_weight(<span class=
|
1568
|
-
"arg">
|
1567
|
+
"arg">weight</span>) -> <em>self</em></p>
|
1569
1568
|
</div>
|
1570
1569
|
|
1571
1570
|
<div class="desc">
|
@@ -1589,14 +1588,14 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1589
1588
|
<h3 id="gravity">gravity</h3>
|
1590
1589
|
|
1591
1590
|
<p><span class="arg">draw</span>.gravity(<span class=
|
1592
|
-
"arg">
|
1591
|
+
"arg">gravity</span>) -> <em>self</em></p>
|
1593
1592
|
</div>
|
1594
1593
|
|
1595
1594
|
<div class="desc">
|
1596
1595
|
<h4>Description</h4>
|
1597
1596
|
|
1598
1597
|
<p>Specify how the text is positioned. The default is
|
1599
|
-
<code>
|
1598
|
+
<code>NorthWestGravity</code>.</p>
|
1600
1599
|
|
1601
1600
|
<h4>Arguments</h4>
|
1602
1601
|
|
@@ -1624,7 +1623,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1624
1623
|
<p><span class="arg">draw</span>.line(<span class=
|
1625
1624
|
"arg">here_x</span>, <span class="arg">here_y</span>,
|
1626
1625
|
<span class="arg">there_x</span>, <span class=
|
1627
|
-
"arg">there_y</span>) -> <em>
|
1626
|
+
"arg">there_y</span>) -> <em>self</em></p>
|
1628
1627
|
</div>
|
1629
1628
|
|
1630
1629
|
<div class="desc">
|
@@ -1664,7 +1663,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1664
1663
|
|
1665
1664
|
<p><span class="arg">draw</span>.matte(<span class=
|
1666
1665
|
"arg">x</span>,<span class="arg">y</span>, <span class=
|
1667
|
-
"arg">
|
1666
|
+
"arg">paint_method</span>) -> <em>self</em></p>
|
1668
1667
|
</div>
|
1669
1668
|
|
1670
1669
|
<div class="desc">
|
@@ -1681,7 +1680,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1681
1680
|
<dd>Point in image to use, along with the PaintMethod
|
1682
1681
|
constant, to set transparent pixels in the image.</dd>
|
1683
1682
|
|
1684
|
-
<dt>
|
1683
|
+
<dt>paint_method</dt>
|
1685
1684
|
|
1686
1685
|
<dd>
|
1687
1686
|
One of the following <a href=
|
@@ -1735,7 +1734,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1735
1734
|
<h3 id="opacity">opacity</h3>
|
1736
1735
|
|
1737
1736
|
<p><span class="arg">draw</span>.opacity(<span class=
|
1738
|
-
"arg">opacity</span>) -> <em>
|
1737
|
+
"arg">opacity</span>) -> <em>self</em></p>
|
1739
1738
|
</div>
|
1740
1739
|
|
1741
1740
|
<div class="desc">
|
@@ -1772,7 +1771,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1772
1771
|
<h3 id="path">path</h3>
|
1773
1772
|
|
1774
1773
|
<p><span class="arg">draw</span>.path(<span class=
|
1775
|
-
"arg">
|
1774
|
+
"arg">string</span>) -> <em>self</em></p>
|
1776
1775
|
</div>
|
1777
1776
|
|
1778
1777
|
<div class="desc">
|
@@ -1835,7 +1834,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1835
1834
|
"arg">name</span>, <span class="arg">x</span>, <span class=
|
1836
1835
|
"arg">y</span>, <span class="arg">width</span>, <span class=
|
1837
1836
|
"arg">height</span>) { pattern primitives } ->
|
1838
|
-
<em>
|
1837
|
+
<em>self</em></p>
|
1839
1838
|
</div>
|
1840
1839
|
|
1841
1840
|
<div class="desc">
|
@@ -1893,7 +1892,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1893
1892
|
|
1894
1893
|
<p><span class="arg">draw</span>.point(<span class=
|
1895
1894
|
"arg">x</span>, <span class="arg">y</span>) ->
|
1896
|
-
<em>
|
1895
|
+
<em>self</em></p>
|
1897
1896
|
</div>
|
1898
1897
|
|
1899
1898
|
<div class="desc">
|
@@ -1919,7 +1918,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1919
1918
|
<h3 id="pointsize">pointsize</h3>
|
1920
1919
|
|
1921
1920
|
<p><span class="arg">draw</span>.pointsize(<span class=
|
1922
|
-
"arg">
|
1921
|
+
"arg">integer</span>) -> <em>self</em></p>
|
1923
1922
|
</div>
|
1924
1923
|
|
1925
1924
|
<div class="desc">
|
@@ -1946,7 +1945,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1946
1945
|
<p><span class="arg">draw</span>.polygon(<span class=
|
1947
1946
|
"arg">x1</span>, <span class="arg">y1</span>,...,<span class=
|
1948
1947
|
"arg">xN</span>, <span class="arg">yN</span>) ->
|
1949
|
-
<em>
|
1948
|
+
<em>self</em></p>
|
1950
1949
|
</div>
|
1951
1950
|
|
1952
1951
|
<div class="desc">
|
@@ -1982,7 +1981,8 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
1982
1981
|
|
1983
1982
|
<p><span class="arg">draw</span>.polyline(<span class=
|
1984
1983
|
"arg">x1</span>, <span class="arg">y1</span>,...,<span class=
|
1985
|
-
"arg">xN</span>, <span class="arg">yN</span>) ->
|
1984
|
+
"arg">xN</span>, <span class="arg">yN</span>) ->
|
1985
|
+
<em>self</em></p>
|
1986
1986
|
</div>
|
1987
1987
|
|
1988
1988
|
<div class="desc">
|
@@ -2014,7 +2014,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2014
2014
|
<div class="sig">
|
2015
2015
|
<h3 id="pop">pop</h3>
|
2016
2016
|
|
2017
|
-
<p><span class="arg">draw</span>.pop -> <em>
|
2017
|
+
<p><span class="arg">draw</span>.pop -> <em>self</em></p>
|
2018
2018
|
</div>
|
2019
2019
|
|
2020
2020
|
<div class="desc">
|
@@ -2033,7 +2033,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2033
2033
|
<div class="sig">
|
2034
2034
|
<h3 id="push">push</h3>
|
2035
2035
|
|
2036
|
-
<p><span class="arg">draw</span>.push -> <em>
|
2036
|
+
<p><span class="arg">draw</span>.push -> <em>self</em></p>
|
2037
2037
|
</div>
|
2038
2038
|
|
2039
2039
|
<div class="desc">
|
@@ -2061,7 +2061,8 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2061
2061
|
|
2062
2062
|
<p><span class="arg">draw</span>.rectangle(<span class=
|
2063
2063
|
"arg">x1</span>, <span class="arg">y1</span>, <span class=
|
2064
|
-
"arg">x2</span>, <span class="arg">y2</span>) ->
|
2064
|
+
"arg">x2</span>, <span class="arg">y2</span>) ->
|
2065
|
+
<em>self</em></p>
|
2065
2066
|
</div>
|
2066
2067
|
|
2067
2068
|
<div class="desc">
|
@@ -2097,7 +2098,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2097
2098
|
<h3 id="rotate">rotate</h3>
|
2098
2099
|
|
2099
2100
|
<p><span class="arg">draw</span>.rotate(<span class=
|
2100
|
-
"arg">degrees</span>) -> <em>
|
2101
|
+
"arg">degrees</span>) -> <em>self</em></p>
|
2101
2102
|
</div>
|
2102
2103
|
|
2103
2104
|
<div class="desc">
|
@@ -2133,7 +2134,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2133
2134
|
"arg">x1</span>, <span class="arg">y1</span>, <span class=
|
2134
2135
|
"arg">x2</span>, <span class="arg">y2</span>, <span class=
|
2135
2136
|
"arg">cw</span>, <span class="arg">ch</span>) ->
|
2136
|
-
<em>
|
2137
|
+
<em>self</em></p>
|
2137
2138
|
</div>
|
2138
2139
|
|
2139
2140
|
<div class="desc">
|
@@ -2175,7 +2176,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2175
2176
|
|
2176
2177
|
<p><span class="arg">draw</span>.scale(<span class=
|
2177
2178
|
"arg">sx</span>, <span class="arg">sy</span>) ->
|
2178
|
-
<em>
|
2179
|
+
<em>self</em></p>
|
2179
2180
|
</div>
|
2180
2181
|
|
2181
2182
|
<div class="desc">
|
@@ -2203,7 +2204,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2203
2204
|
<h3 id="skewx">skewx</h3>
|
2204
2205
|
|
2205
2206
|
<p><span class="arg">draw</span>.skewx(<span class=
|
2206
|
-
"arg">
|
2207
|
+
"arg">float</span>) -> <em>self</em></p>
|
2207
2208
|
</div>
|
2208
2209
|
|
2209
2210
|
<div class="desc">
|
@@ -2235,7 +2236,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2235
2236
|
<h3 id="skewy">skewy</h3>
|
2236
2237
|
|
2237
2238
|
<p><span class="arg">draw</span>.skewy(<span class=
|
2238
|
-
"arg">
|
2239
|
+
"arg">float</span>) -> <em>self</em></p>
|
2239
2240
|
</div>
|
2240
2241
|
|
2241
2242
|
<div class="desc">
|
@@ -2267,7 +2268,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2267
2268
|
<h3 id="stroke">stroke</h3>
|
2268
2269
|
|
2269
2270
|
<p><span class="arg">draw</span>.stroke(<span class=
|
2270
|
-
"arg">
|
2271
|
+
"arg">string</span>) -> <em>self</em></p>
|
2271
2272
|
</div>
|
2272
2273
|
|
2273
2274
|
<div class="desc">
|
@@ -2293,7 +2294,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2293
2294
|
|
2294
2295
|
<p><span class=
|
2295
2296
|
"arg">draw</span>.stroke_antialias(<code>true</code> or
|
2296
|
-
<code>false</code>) -> <em>
|
2297
|
+
<code>false</code>) -> <em>self</em></p>
|
2297
2298
|
</div>
|
2298
2299
|
|
2299
2300
|
<div class="desc">
|
@@ -2308,7 +2309,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2308
2309
|
|
2309
2310
|
<p><span class="arg">draw</span>.stroke_dasharray(<span class=
|
2310
2311
|
"arg">x1</span>,...,<span class="arg">xn</span>) ->
|
2311
|
-
<em>
|
2312
|
+
<em>self</em></p>
|
2312
2313
|
</div>
|
2313
2314
|
|
2314
2315
|
<div class="desc">
|
@@ -2350,7 +2351,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2350
2351
|
<h3 id="stroke_dashoffset">stroke_dashoffset</h3>
|
2351
2352
|
|
2352
2353
|
<p><span class="arg">draw</span>.stroke_dashoffset(<span class=
|
2353
|
-
"arg">
|
2354
|
+
"arg">integer</span>) -> <em>self</em></p>
|
2354
2355
|
</div>
|
2355
2356
|
|
2356
2357
|
<div class="desc">
|
@@ -2375,7 +2376,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2375
2376
|
<h3 id="stroke_linecap">stroke_linecap</h3>
|
2376
2377
|
|
2377
2378
|
<p><span class="arg">draw</span>.stroke_linecap(<span class=
|
2378
|
-
"arg">
|
2379
|
+
"arg">string</span>) -> <em>self</em></p>
|
2379
2380
|
</div>
|
2380
2381
|
|
2381
2382
|
<div class="desc">
|
@@ -2408,7 +2409,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2408
2409
|
<h3 id="stroke_linejoin">stroke_linejoin</h3>
|
2409
2410
|
|
2410
2411
|
<p><span class="arg">draw</span>.stroke_linejoin(<span class=
|
2411
|
-
"arg">
|
2412
|
+
"arg">string</span>) -> <em>self</em></p>
|
2412
2413
|
</div>
|
2413
2414
|
|
2414
2415
|
<div class="desc">
|
@@ -2444,7 +2445,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2444
2445
|
<h3 id="stroke_miterlimit">stroke_miterlimit</h3>
|
2445
2446
|
|
2446
2447
|
<p><span class="arg">draw</span>.stroke_miterlimit(<span class=
|
2447
|
-
"arg">
|
2448
|
+
"arg">float</span>) -> <em>self</em></p>
|
2448
2449
|
</div>
|
2449
2450
|
|
2450
2451
|
<div class="desc">
|
@@ -2470,8 +2471,8 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2470
2471
|
<h3 id="stroke_opacity">stroke_opacity</h3>
|
2471
2472
|
|
2472
2473
|
<p><span class="arg">draw</span>.stroke_opacity(<span class=
|
2473
|
-
"arg">
|
2474
|
-
<em>
|
2474
|
+
"arg">float</span> or <span class="arg">string</span>) ->
|
2475
|
+
<em>self</em></p>
|
2475
2476
|
</div>
|
2476
2477
|
|
2477
2478
|
<div class="desc">
|
@@ -2503,7 +2504,7 @@ draw.stroke_opacity('40%')
|
|
2503
2504
|
<h3 id="stroke_width">stroke_width</h3>
|
2504
2505
|
|
2505
2506
|
<p><span class="arg">draw</span>.stroke_width(<span class=
|
2506
|
-
"arg">
|
2507
|
+
"arg">integer</span>) -> <em>self</em></p>
|
2507
2508
|
</div>
|
2508
2509
|
|
2509
2510
|
<div class="desc">
|
@@ -2527,7 +2528,7 @@ draw.stroke_opacity('40%')
|
|
2527
2528
|
|
2528
2529
|
<p><span class="arg">draw</span>.text(<span class=
|
2529
2530
|
"arg">x</span>,<span class="arg">y</span>, <span class=
|
2530
|
-
"arg">text</span>) -> <em>
|
2531
|
+
"arg">text</span>) -> <em>self</em></p>
|
2531
2532
|
</div>
|
2532
2533
|
|
2533
2534
|
<div class="desc">
|
@@ -2599,7 +2600,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2599
2600
|
<h3 id="text_align">text_align</h3>
|
2600
2601
|
|
2601
2602
|
<p><span class="arg">draw</span>.text_align(<span class=
|
2602
|
-
"arg">
|
2603
|
+
"arg">alignment</span>) -> <em>self</em></p>
|
2603
2604
|
</div>
|
2604
2605
|
|
2605
2606
|
<div class="desc">
|
@@ -2627,7 +2628,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2627
2628
|
<h3 id="text_anchor">text_anchor</h3>
|
2628
2629
|
|
2629
2630
|
<p><span class="arg">draw</span>.text_anchor(<span class=
|
2630
|
-
"arg">
|
2631
|
+
"arg">anchor</span>) -> <em>self</em></p>
|
2631
2632
|
</div>
|
2632
2633
|
|
2633
2634
|
<div class="desc">
|
@@ -2651,7 +2652,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2651
2652
|
|
2652
2653
|
<p><span class=
|
2653
2654
|
"arg">draw</span>.text_antialias(<code>true</code> or
|
2654
|
-
<code>false</code>) -> <em>
|
2655
|
+
<code>false</code>) -> <em>self</em></p>
|
2655
2656
|
</div>
|
2656
2657
|
|
2657
2658
|
<div class="desc">
|
@@ -2684,7 +2685,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2684
2685
|
<h3 id="text_undercolor">text_undercolor</h3>
|
2685
2686
|
|
2686
2687
|
<p><span class="arg">draw</span>.text_undercolor(<span class=
|
2687
|
-
"arg">
|
2688
|
+
"arg">string</span>) -> <em>self</em></p>
|
2688
2689
|
</div>
|
2689
2690
|
|
2690
2691
|
<div class="desc">
|
@@ -2703,7 +2704,8 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2703
2704
|
|
2704
2705
|
<h4>Example</h4>
|
2705
2706
|
|
2706
|
-
<p><a href=
|
2707
|
+
<p><a href=
|
2708
|
+
"javascript:popup('text_undercolor.rb.html')"><img src=
|
2707
2709
|
"ex/text_undercolor.gif" alt="text_undercolor example" title=
|
2708
2710
|
"Click to see the example script" /></a></p>
|
2709
2711
|
</div>
|
@@ -2713,7 +2715,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2713
2715
|
|
2714
2716
|
<p><span class="arg">draw</span>.translate(<span class=
|
2715
2717
|
"arg">tx</span>, <span class="arg">ty</span>) ->
|
2716
|
-
<em>
|
2718
|
+
<em>self</em></p>
|
2717
2719
|
</div>
|
2718
2720
|
|
2719
2721
|
<div class="desc">
|
@@ -2751,8 +2753,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2751
2753
|
<div class="sig">
|
2752
2754
|
<h3 id="affine_eq">affine=</h3>
|
2753
2755
|
|
2754
|
-
<p><span class="arg">draw
|
2755
|
-
<em>anAffineMatrix</em></p>
|
2756
|
+
<p><span class="arg">draw</span>.affine = <em>matrix</em></p>
|
2756
2757
|
</div>
|
2757
2758
|
|
2758
2759
|
<div class="desc">
|
@@ -2769,8 +2770,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2769
2770
|
<div class="sig">
|
2770
2771
|
<h3 id="align_eq">align=</h3>
|
2771
2772
|
|
2772
|
-
<p><span class="arg">draw
|
2773
|
-
<em>anAlignType</em></p>
|
2773
|
+
<p><span class="arg">draw</span>.align = <em>alignment</em></p>
|
2774
2774
|
</div>
|
2775
2775
|
|
2776
2776
|
<div class="desc">
|
@@ -2789,7 +2789,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2789
2789
|
<h3 id="decorate_eq">decorate=</h3>
|
2790
2790
|
|
2791
2791
|
<p><span class="arg">draw</span>.decorate =
|
2792
|
-
<em>
|
2792
|
+
<em>decoration</em></p>
|
2793
2793
|
</div>
|
2794
2794
|
|
2795
2795
|
<div class="desc">
|
@@ -2807,7 +2807,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2807
2807
|
<div class="sig">
|
2808
2808
|
<h3 id="density_eq">density=</h3>
|
2809
2809
|
|
2810
|
-
<p><span class="arg">draw</span>.density = <em>
|
2810
|
+
<p><span class="arg">draw</span>.density = <em>string</em></p>
|
2811
2811
|
</div>
|
2812
2812
|
|
2813
2813
|
<div class="desc">
|
@@ -2820,8 +2820,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2820
2820
|
<div class="sig">
|
2821
2821
|
<h3 id="encoding_eq">encoding=</h3>
|
2822
2822
|
|
2823
|
-
<p><span class="arg">draw</span>.encoding =
|
2824
|
-
<em>aString</em></p>
|
2823
|
+
<p><span class="arg">draw</span>.encoding = <em>string</em></p>
|
2825
2824
|
</div>
|
2826
2825
|
|
2827
2826
|
<div class="desc">
|
@@ -2839,8 +2838,8 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2839
2838
|
<div class="sig">
|
2840
2839
|
<h3 id="fill_eq">fill=</h3>
|
2841
2840
|
|
2842
|
-
<p><span class="arg">draw</span>.fill = <em>
|
2843
|
-
<em>
|
2841
|
+
<p><span class="arg">draw</span>.fill = <em>string</em> or
|
2842
|
+
<em>pixel</em></p>
|
2844
2843
|
</div>
|
2845
2844
|
|
2846
2845
|
<div class="desc">
|
@@ -2856,7 +2855,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2856
2855
|
<h3 id="fill_pattern_eq">fill_pattern=</h3>
|
2857
2856
|
|
2858
2857
|
<p><span class="arg">draw</span>.fill_pattern =
|
2859
|
-
<em>
|
2858
|
+
<em>image</em></p>
|
2860
2859
|
</div>
|
2861
2860
|
|
2862
2861
|
<div class="desc">
|
@@ -2877,7 +2876,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2877
2876
|
<div class="sig">
|
2878
2877
|
<h3 id="font_eq">font=</h3>
|
2879
2878
|
|
2880
|
-
<p><span class="arg">draw</span>.font = <em>
|
2879
|
+
<p><span class="arg">draw</span>.font = <em>string</em></p>
|
2881
2880
|
</div>
|
2882
2881
|
|
2883
2882
|
<div class="desc">
|
@@ -2891,7 +2890,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2891
2890
|
<h3 id="font_family_eq">font_family=</h3>
|
2892
2891
|
|
2893
2892
|
<p><span class="arg">draw</span>.font_family =
|
2894
|
-
<em>
|
2893
|
+
<em>string</em></p>
|
2895
2894
|
</div>
|
2896
2895
|
|
2897
2896
|
<div class="desc">
|
@@ -2905,7 +2904,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2905
2904
|
<h3 id="font_stretch_eq">font_stretch=</h3>
|
2906
2905
|
|
2907
2906
|
<p><span class="arg">draw</span>.font_stretch =
|
2908
|
-
<em>
|
2907
|
+
<em>stretch</em></p>
|
2909
2908
|
</div>
|
2910
2909
|
|
2911
2910
|
<div class="desc">
|
@@ -2921,7 +2920,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2921
2920
|
<h3 id="font_style_eq">font_style=</h3>
|
2922
2921
|
|
2923
2922
|
<p><span class="arg">draw</span>.font_style =
|
2924
|
-
<em>
|
2923
|
+
<em>style</em></p>
|
2925
2924
|
</div>
|
2926
2925
|
|
2927
2926
|
<div class="desc">
|
@@ -2939,7 +2938,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2939
2938
|
<h3 id="font_weight_eq">font_weight=</h3>
|
2940
2939
|
|
2941
2940
|
<p><span class="arg">draw</span>.font_weight =
|
2942
|
-
<em>
|
2941
|
+
<em>weight</em></p>
|
2943
2942
|
</div>
|
2944
2943
|
|
2945
2944
|
<div class="desc">
|
@@ -2957,8 +2956,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2957
2956
|
<div class="sig">
|
2958
2957
|
<h3 id="gravity_eq">gravity=</h3>
|
2959
2958
|
|
2960
|
-
<p><span class="arg">draw</span>.gravity =
|
2961
|
-
<em>aGravityType</em></p>
|
2959
|
+
<p><span class="arg">draw</span>.gravity = <em>gravity</em></p>
|
2962
2960
|
</div>
|
2963
2961
|
|
2964
2962
|
<div class="desc">
|
@@ -2977,7 +2975,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2977
2975
|
<h3 id="pointsize_eq">pointsize=</h3>
|
2978
2976
|
|
2979
2977
|
<p><span class="arg">draw</span>.pointsize =
|
2980
|
-
<em>
|
2978
|
+
<em>integer</em></p>
|
2981
2979
|
</div>
|
2982
2980
|
|
2983
2981
|
<div class="desc">
|
@@ -2989,8 +2987,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2989
2987
|
<div class="sig">
|
2990
2988
|
<h3 id="rotation_eq">rotation=</h3>
|
2991
2989
|
|
2992
|
-
<p><span class="arg">draw</span>.rotation =
|
2993
|
-
<em>aNumeric</em></p>
|
2990
|
+
<p><span class="arg">draw</span>.rotation = <em>number</em></p>
|
2994
2991
|
</div>
|
2995
2992
|
|
2996
2993
|
<div class="desc">
|
@@ -3006,8 +3003,8 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
3006
3003
|
<div class="sig">
|
3007
3004
|
<h3 id="stroke_eq">stroke=</h3>
|
3008
3005
|
|
3009
|
-
<p><span class="arg">draw</span>.stroke = <em>
|
3010
|
-
<em>
|
3006
|
+
<p><span class="arg">draw</span>.stroke = <em>string</em> or
|
3007
|
+
<em>pixel</em></p>
|
3011
3008
|
</div>
|
3012
3009
|
|
3013
3010
|
<div class="desc">
|
@@ -3024,7 +3021,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
3024
3021
|
<h3 id="stroke_pattern_eq">stroke_pattern=</h3>
|
3025
3022
|
|
3026
3023
|
<p><span class="arg">draw</span>.stroke_pattern =
|
3027
|
-
<em>
|
3024
|
+
<em>image</em></p>
|
3028
3025
|
</div>
|
3029
3026
|
|
3030
3027
|
<div class="desc">
|
@@ -3042,8 +3039,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
3042
3039
|
<div class="sig">
|
3043
3040
|
<h3 id="stroke_width_eq">stroke_width=</h3>
|
3044
3041
|
|
3045
|
-
<p><span class="arg">draw</span>.stroke =
|
3046
|
-
<em>anInteger</em></p>
|
3042
|
+
<p><span class="arg">draw</span>.stroke = <em>integer</em></p>
|
3047
3043
|
</div>
|
3048
3044
|
|
3049
3045
|
<div class="desc">
|
@@ -3069,7 +3065,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
3069
3065
|
<div class="sig">
|
3070
3066
|
<h3 id="tile_eq">tile=</h3>
|
3071
3067
|
|
3072
|
-
<p><span class="arg">draw</span>.tile = <em>
|
3068
|
+
<p><span class="arg">draw</span>.tile = <em>image</em></p>
|
3073
3069
|
</div>
|
3074
3070
|
|
3075
3071
|
<div class="desc">
|
@@ -3085,8 +3081,8 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
3085
3081
|
<div class="sig">
|
3086
3082
|
<h3 id="undercolor_eq">undercolor=</h3>
|
3087
3083
|
|
3088
|
-
<p><span class="arg">draw</span>.undercolor = <em>
|
3089
|
-
or <em>
|
3084
|
+
<p><span class="arg">draw</span>.undercolor = <em>string</em>
|
3085
|
+
or <em>pixel</em></p>
|
3090
3086
|
</div>
|
3091
3087
|
|
3092
3088
|
<div class="desc">
|