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/doc/rvgshape.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: RVG Reference: Shapes</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
|
30
30
|
<body>
|
31
|
-
<h6 id="header">RMagick 2.
|
31
|
+
<h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
|
32
32
|
|
33
33
|
<div class="nav">
|
34
34
|
« <a href="rvgstyle.html">Prev</a> | <a href=
|
@@ -86,8 +86,7 @@
|
|
86
86
|
|
87
87
|
<p><span class="arg">obj</span>.circle(<span class=
|
88
88
|
"arg">radius</span>, <span class="arg">cx</span>=0,
|
89
|
-
<span class="arg">cy</span>=0) -> <
|
90
|
-
"arg">aCircle</span></p>
|
89
|
+
<span class="arg">cy</span>=0) -> <em>circle</em></p>
|
91
90
|
</div>
|
92
91
|
|
93
92
|
<div class='desc'>
|
@@ -124,7 +123,7 @@
|
|
124
123
|
<p><span class="arg">obj</span>.ellipse(<span class=
|
125
124
|
"arg">rx</span>, <span class="arg">ry</span>, <span class=
|
126
125
|
"arg">cx</span>=0, <span class="arg">cy</span>=0) ->
|
127
|
-
<
|
126
|
+
<em>ellipse</em></p>
|
128
127
|
</div>
|
129
128
|
|
130
129
|
<div class='desc'>
|
@@ -160,8 +159,7 @@
|
|
160
159
|
|
161
160
|
<p><span class="arg">obj</span>.line(<span class=
|
162
161
|
"arg">x1</span>=0, y1=0, <span class="arg">x2</span>=0,
|
163
|
-
<span class="arg">y2</span>=0) -> <
|
164
|
-
"arg">aLine</span></p>
|
162
|
+
<span class="arg">y2</span>=0) -> <em>line</em></p>
|
165
163
|
</div>
|
166
164
|
|
167
165
|
<div class='desc'>
|
@@ -193,8 +191,7 @@
|
|
193
191
|
<h4 id='path'>path</h4>
|
194
192
|
|
195
193
|
<p><span class="arg">obj</span>.path(<span class=
|
196
|
-
"arg">path_data</span>) -> <
|
197
|
-
"arg">aPath</span></p>
|
194
|
+
"arg">path_data</span>) -> <em>path</em></p>
|
198
195
|
</div>
|
199
196
|
|
200
197
|
<div class="desc">
|
@@ -250,14 +247,12 @@
|
|
250
247
|
|
251
248
|
<p><span class="arg">obj</span>.polygon(<span class=
|
252
249
|
"arg">x1</span>, y1, <span class="arg">x2</span>, <span class=
|
253
|
-
"arg">y2</span>...) -> <
|
254
|
-
"arg">aPolygon</span><br />
|
250
|
+
"arg">y2</span>...) -> <em>polygon</em><br />
|
255
251
|
<span class="arg">obj</span>.polygon(<span class=
|
256
|
-
"arg">array</span>) -> <
|
257
|
-
"arg">aPolygon</span><br />
|
252
|
+
"arg">array</span>) -> <em>polygon</em><br />
|
258
253
|
<span class="arg">obj</span>.polygon(<span class=
|
259
254
|
"arg">array1</span>, <span class="arg">array2</span>) ->
|
260
|
-
<
|
255
|
+
<em>polygon</em></p>
|
261
256
|
</div>
|
262
257
|
|
263
258
|
<div class="desc">
|
@@ -308,14 +303,12 @@
|
|
308
303
|
|
309
304
|
<p><span class="arg">obj</span>.polyline(<span class=
|
310
305
|
"arg">x1</span>, y1, <span class="arg">x2</span>, <span class=
|
311
|
-
"arg">y2</span>...) -> <
|
312
|
-
"arg">aPolyline</span><br />
|
306
|
+
"arg">y2</span>...) -> <em>polyline</em><br />
|
313
307
|
<span class="arg">obj</span>.polyline(<span class=
|
314
|
-
"arg">array</span>) -> <
|
315
|
-
"arg">aPolyline</span><br />
|
308
|
+
"arg">array</span>) -> <em>polyline</em><br />
|
316
309
|
<span class="arg">obj</span>.polyline(<span class=
|
317
310
|
"arg">array1</span>, <span class="arg">array2</span>) ->
|
318
|
-
<
|
311
|
+
<em>polyline</em></p>
|
319
312
|
</div>
|
320
313
|
|
321
314
|
<div class="desc">
|
@@ -341,7 +334,7 @@
|
|
341
334
|
<p><span class="arg">obj</span>.rect(<span class=
|
342
335
|
"arg">width</span>, <span class="arg">height</span>,
|
343
336
|
<span class="arg">x</span>=0, <span class="arg">y</span>=0)
|
344
|
-
-> <
|
337
|
+
-> <em>rect</em></p>
|
345
338
|
</div>
|
346
339
|
|
347
340
|
<div class="desc">
|
data/doc/rvgstyle.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: RVG Reference: Styles</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 2.
|
30
|
+
<h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvguse.html">Prev</a> | <a href=
|
@@ -57,7 +57,7 @@
|
|
57
57
|
<p><span class="arg">obj.</span>styles(<span class=
|
58
58
|
"arg">:style=>value</span>[, <span class=
|
59
59
|
"arg">:style=>value</span>...]) [{|obj| }] ->
|
60
|
-
<
|
60
|
+
<em>obj</em></p>
|
61
61
|
</div>
|
62
62
|
|
63
63
|
<div class="desc">
|
data/doc/rvgtext.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: RVG Reference: RVG::Text Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -33,7 +33,7 @@
|
|
33
33
|
</head>
|
34
34
|
|
35
35
|
<body>
|
36
|
-
<h6 id="header">RMagick 2.
|
36
|
+
<h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
|
37
37
|
|
38
38
|
<div class="nav">
|
39
39
|
« <a href="rvgclip.html">Prev</a> | <a href=
|
@@ -93,7 +93,8 @@
|
|
93
93
|
|
94
94
|
<p>RVG::Text.new(<span class="arg">x</span>=0, <span class=
|
95
95
|
"arg">y</span>=0, <span class="arg">text</span>=nil) [
|
96
|
-
<span class="arg">{ |text| ...}</span> ] ->
|
96
|
+
<span class="arg">{ |text| ...}</span> ] ->
|
97
|
+
<em>text</em></p>
|
97
98
|
</div>
|
98
99
|
|
99
100
|
<div class="desc">
|
@@ -149,8 +150,8 @@
|
|
149
150
|
|
150
151
|
<p><span class="arg">text</span>.d(<span class=
|
151
152
|
"arg">dx</span>[, <span class="arg">dy</span>=0]) [
|
152
|
-
<span class="arg">{ |self| ...}</span> ] ->
|
153
|
-
|
153
|
+
<span class="arg">{ |self| ...}</span> ] ->
|
154
|
+
<em>self</em></p>
|
154
155
|
</div>
|
155
156
|
|
156
157
|
<div class="desc">
|
@@ -182,7 +183,7 @@
|
|
182
183
|
|
183
184
|
<p><span class="arg">text</span>.rotate(<span class=
|
184
185
|
"arg">degrees</span>) [ <span class="arg">{ |text| ...}</span>
|
185
|
-
] -> <
|
186
|
+
] -> <em>self</em></p>
|
186
187
|
</div>
|
187
188
|
|
188
189
|
<div class="desc">
|
@@ -210,7 +211,7 @@
|
|
210
211
|
|
211
212
|
<p><span class="arg">text</span>.tref(<span class=
|
212
213
|
"arg">tspan</span>, <span class="arg">x</span>=0, <span class=
|
213
|
-
"arg">y</span>=0) -> <
|
214
|
+
"arg">y</span>=0) -> <em>self</em></p>
|
214
215
|
</div>
|
215
216
|
|
216
217
|
<div class="desc">
|
@@ -244,7 +245,7 @@
|
|
244
245
|
<p><span class="arg">text</span>.tspan(<span class=
|
245
246
|
"arg">string</span>=nil, <span class="arg">x</span>=nil,
|
246
247
|
<span class="arg">y</span>=nil) [ <span class="arg">{ |tspan|
|
247
|
-
...}</span> ] ->
|
248
|
+
...}</span> ] -> <em>tspan</em></p>
|
248
249
|
</div>
|
249
250
|
|
250
251
|
<div class="desc">
|
data/doc/rvgtspan.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: RVG Reference: RVG::Tspan Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 2.
|
30
|
+
<h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvgtext.html">Prev</a> | <a href=
|
@@ -75,7 +75,8 @@
|
|
75
75
|
|
76
76
|
<p>RVG::Tspan.new(<span class="arg">text</span>=nil,
|
77
77
|
<span class="arg">x</span>=0, <span class="arg">y</span>=0) [
|
78
|
-
<span class="arg">{ |tspan| ...}</span> ] ->
|
78
|
+
<span class="arg">{ |tspan| ...}</span> ] ->
|
79
|
+
<em>tspan</em></p>
|
79
80
|
</div>
|
80
81
|
|
81
82
|
<div class="desc">
|
@@ -101,9 +102,9 @@
|
|
101
102
|
text position. By default the string is positioned with the
|
102
103
|
lower-left corner of the first glyph at the current text
|
103
104
|
position. Use the <a href=
|
104
|
-
"rvgtext.html#text_anchor">:text_anchor</a> style to
|
105
|
-
|
106
|
-
|
105
|
+
"rvgtext.html#text_anchor">:text_anchor</a> style to override
|
106
|
+
this behavior. After the string is rendered, the current text
|
107
|
+
position is moved to the end of the string.</dd>
|
107
108
|
|
108
109
|
<dt>x, y</dt>
|
109
110
|
|
@@ -125,8 +126,8 @@
|
|
125
126
|
|
126
127
|
<p><span class="arg">tspan</span>.d(<span class=
|
127
128
|
"arg">dx</span>[, <span class="arg">dy</span>=0]) [
|
128
|
-
<span class="arg">{ |self| ...}</span> ] ->
|
129
|
-
|
129
|
+
<span class="arg">{ |self| ...}</span> ] ->
|
130
|
+
<em>self</em></p>
|
130
131
|
</div>
|
131
132
|
|
132
133
|
<div class="desc">
|
@@ -162,7 +163,7 @@
|
|
162
163
|
|
163
164
|
<p><span class="arg">tspan</span>.rotate(<span class=
|
164
165
|
"arg">degrees</span>) [ <span class="arg">{ |self| ...}</span>
|
165
|
-
] -> <
|
166
|
+
] -> <em>self</em></p>
|
166
167
|
</div>
|
167
168
|
|
168
169
|
<div class="desc">
|
@@ -197,7 +198,7 @@
|
|
197
198
|
<p><span class="arg">tspan</span>.tspan(<span class=
|
198
199
|
"arg">string</span>=0, <span class="arg">x</span>=nil,
|
199
200
|
<span class="arg">y</span>=0) [ <span class="arg">{ |tspan|
|
200
|
-
...}</span> ] ->
|
201
|
+
...}</span> ] -> <em>tspan</em></p>
|
201
202
|
</div>
|
202
203
|
|
203
204
|
<div class="desc">
|
data/doc/rvgtut.html
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
4
|
|
5
5
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
-
<!-- $Id: rvgtut.html,v 1.
|
6
|
+
<!-- $Id: rvgtut.html,v 1.12 2008/01/07 00:04:01 rmagick Exp $ -->
|
7
7
|
|
8
8
|
<head>
|
9
9
|
<meta name="generator" content=
|
10
|
-
"HTML Tidy for Linux/x86 (vers
|
10
|
+
"HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
|
11
11
|
|
12
|
-
<title>RMagick 2.
|
12
|
+
<title>RMagick 2.1.0: RVG Tutorial</title>
|
13
13
|
<meta name="GENERATOR" content="Quanta Plus" />
|
14
14
|
<link rel="stylesheet" type="text/css" href="css/doc.css" />
|
15
15
|
<style type="text/css">
|
@@ -23,7 +23,7 @@
|
|
23
23
|
</head>
|
24
24
|
|
25
25
|
<body>
|
26
|
-
<h6 id="header">RMagick 2.
|
26
|
+
<h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
|
27
27
|
|
28
28
|
<div class="nav">
|
29
29
|
« <a href="constants.html">Prev</a> | <a href=
|
data/doc/rvguse.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: RVG Reference: RVG::Use Class</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 2.
|
30
|
+
<h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="rvgtspan.html">Prev</a> | <a href=
|
@@ -62,7 +62,7 @@
|
|
62
62
|
<p>RVG::Use.new(<span class="arg">obj</span>, <span class=
|
63
63
|
"arg">x</span>=0, <span class="arg">y</span>=0, <span class=
|
64
64
|
"arg">width</span>=nil, <span class=
|
65
|
-
"arg">height</span>=nil)-> <
|
65
|
+
"arg">height</span>=nil)-> <em>use</em></p>
|
66
66
|
</div>
|
67
67
|
|
68
68
|
<div class="desc">
|
data/doc/rvgxform.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: RVG Reference: Transforms</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</head>
|
29
29
|
|
30
30
|
<body>
|
31
|
-
<h6 id="header">RMagick 2.
|
31
|
+
<h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
|
32
32
|
|
33
33
|
<div class="nav">
|
34
34
|
« <a href="rvgshape.html">Prev</a> | <a href=
|
@@ -101,7 +101,7 @@
|
|
101
101
|
"arg">sx</span>, <span class="arg">rx</span>, <span class=
|
102
102
|
"arg">ry</span>, <span class="arg">sy</span>, <span class=
|
103
103
|
"arg">tx</span>, <span class="arg">ty</span>) ->
|
104
|
-
<
|
104
|
+
<em>obj</em></p>
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div class="desc">
|
@@ -137,7 +137,7 @@
|
|
137
137
|
|
138
138
|
<p><span class="arg">obj</span>.rotate(<span class=
|
139
139
|
"arg">angle</span>[, <span class="arg">cx</span>, <span class=
|
140
|
-
"arg">cy</span>]) -> <
|
140
|
+
"arg">cy</span>]) -> <em>obj</em></p>
|
141
141
|
</div>
|
142
142
|
|
143
143
|
<div class="desc">
|
@@ -170,7 +170,7 @@
|
|
170
170
|
|
171
171
|
<p><span class="arg">obj</span>.scale(<span class=
|
172
172
|
"arg">sx</span>[, <span class="arg">sy</span>]) ->
|
173
|
-
<
|
173
|
+
<em>obj</em></p>
|
174
174
|
</div>
|
175
175
|
|
176
176
|
<div class="desc">
|
@@ -202,7 +202,7 @@
|
|
202
202
|
<h4 id='skewX'>skewX</h4>
|
203
203
|
|
204
204
|
<p><span class="arg">obj</span>.skewX(<span class=
|
205
|
-
"arg">angle</span>) -> <
|
205
|
+
"arg">angle</span>) -> <em>obj</em></p>
|
206
206
|
</div>
|
207
207
|
|
208
208
|
<div class="desc">
|
@@ -227,7 +227,7 @@
|
|
227
227
|
<h4 id='skewY'>skewY</h4>
|
228
228
|
|
229
229
|
<p><span class="arg">obj</span>.skewY(<span class=
|
230
|
-
"arg">angle</span>) -> <
|
230
|
+
"arg">angle</span>) -> <em>obj</em></p>
|
231
231
|
</div>
|
232
232
|
|
233
233
|
<div class="desc">
|
@@ -255,7 +255,7 @@
|
|
255
255
|
|
256
256
|
<p><span class="arg">obj</span>.translate(<span class=
|
257
257
|
"arg">tx</span>[, <span class="arg">ty</span>]) ->
|
258
|
-
<
|
258
|
+
<em>obj</em></p>
|
259
259
|
</div>
|
260
260
|
|
261
261
|
<div class="desc">
|
data/doc/struct.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: Miscellaneous classes</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -27,7 +27,7 @@
|
|
27
27
|
</head>
|
28
28
|
|
29
29
|
<body>
|
30
|
-
<h6 id="header">RMagick 2.
|
30
|
+
<h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
|
31
31
|
|
32
32
|
<div class="nav">
|
33
33
|
« <a href="draw.html">Prev</a> | <a href=
|
@@ -90,7 +90,9 @@
|
|
90
90
|
|
91
91
|
<ul>
|
92
92
|
<li><a href="#MagickError">ImageMagickError</a></li>
|
93
|
-
|
93
|
+
|
94
|
+
<li><a href=
|
95
|
+
"#DestroyedImageError">DestroyedImageError</a></li>
|
94
96
|
</ul>
|
95
97
|
</div>
|
96
98
|
|
@@ -121,7 +123,7 @@
|
|
121
123
|
<p>Image::View.new(<span class="arg">img</span>, <span class=
|
122
124
|
"arg">x</span>, <span class="arg">y</span>, <span class=
|
123
125
|
"arg">width</span>, <span class="arg">height</span>) ->
|
124
|
-
|
126
|
+
<em>view</em></p>
|
125
127
|
</div>
|
126
128
|
|
127
129
|
<div class="desc">
|
@@ -162,7 +164,7 @@
|
|
162
164
|
|
163
165
|
<p><span class="arg">view</span>[<span class=
|
164
166
|
"arg">i</span>][<span class="arg">j</span>] ->
|
165
|
-
<em>
|
167
|
+
<em>pixel</em> or <em>array</em></p>
|
166
168
|
</div>
|
167
169
|
|
168
170
|
<div class="desc">
|
@@ -234,16 +236,16 @@
|
|
234
236
|
[][].opacity</h4>
|
235
237
|
|
236
238
|
<p>[<span class="arg">i</span>][<span class=
|
237
|
-
"arg">j</span>].red -> <em>
|
238
|
-
<em>
|
239
|
+
"arg">j</span>].red -> <em>integer</em> or
|
240
|
+
<em>array</em><br />
|
239
241
|
[<span class="arg">i</span>][<span class=
|
240
|
-
"arg">j</span>].green -> <em>
|
241
|
-
<em>
|
242
|
+
"arg">j</span>].green -> <em>integer</em> or
|
243
|
+
<em>array</em><br />
|
242
244
|
[<span class="arg">i</span>][<span class="arg">j</span>].blue
|
243
|
-
-> <em>
|
245
|
+
-> <em>integer</em> or <em>array</em><br />
|
244
246
|
[<span class="arg">i</span>][<span class=
|
245
|
-
"arg">j</span>].opacity -> <em>
|
246
|
-
<em>
|
247
|
+
"arg">j</span>].opacity -> <em>integer</em> or
|
248
|
+
<em>array</em></p>
|
247
249
|
</div>
|
248
250
|
|
249
251
|
<div class="desc">
|
@@ -273,8 +275,8 @@
|
|
273
275
|
<h4>[][]=</h4>
|
274
276
|
|
275
277
|
<p><span class="arg">view</span>[<span class=
|
276
|
-
"arg">i</span>][<span class="arg">j</span>] =
|
277
|
-
|
278
|
+
"arg">i</span>][<span class="arg">j</span>] =
|
279
|
+
<em>rvalue</em></p>
|
278
280
|
</div>
|
279
281
|
|
280
282
|
<div class="desc">
|
@@ -305,22 +307,19 @@
|
|
305
307
|
[][].opacity=</h4>
|
306
308
|
|
307
309
|
<p>[<span class="arg">i</span>][<span class=
|
308
|
-
"arg">j</span>].red = <em>
|
309
|
-
<code>nil</code><br />
|
310
|
+
"arg">j</span>].red = <em>integer</em><br />
|
310
311
|
[<span class="arg">i</span>][<span class=
|
311
|
-
"arg">j</span>].green = <em>
|
312
|
-
<code>nil</code><br />
|
312
|
+
"arg">j</span>].green = <em>integer</em><br />
|
313
313
|
[<span class="arg">i</span>][<span class="arg">j</span>].blue
|
314
|
-
= <em>
|
314
|
+
= <em>integer</em><br />
|
315
315
|
[<span class="arg">i</span>][<span class=
|
316
|
-
"arg">j</span>].opacity = <em>
|
317
|
-
<code>nil</code></p>
|
316
|
+
"arg">j</span>].opacity = <em>integer</em></p>
|
318
317
|
</div>
|
319
318
|
|
320
319
|
<div class="desc">
|
321
320
|
<h5>Description</h5>
|
322
321
|
|
323
|
-
<p>Assigns <em>
|
322
|
+
<p>Assigns <em>integer</em> to the red, green, blue, or
|
324
323
|
opacity channel of the pixel or pixels identified by the
|
325
324
|
indexes.</p>
|
326
325
|
|
@@ -391,10 +390,10 @@
|
|
391
390
|
width<br />
|
392
391
|
height</h4>
|
393
392
|
|
394
|
-
<p>x ->
|
395
|
-
y ->
|
396
|
-
width ->
|
397
|
-
height ->
|
393
|
+
<p>x -> integer<br />
|
394
|
+
y -> integer<br />
|
395
|
+
width -> integer<br />
|
396
|
+
height -> integer</p>
|
398
397
|
</div>
|
399
398
|
|
400
399
|
<div class="desc">
|
@@ -425,11 +424,11 @@
|
|
425
424
|
<div class="sig">
|
426
425
|
<h4>new</h4>
|
427
426
|
|
428
|
-
<p>Geometry
|
429
|
-
"arg">
|
430
|
-
|
431
|
-
|
432
|
-
<em>
|
427
|
+
<p>Geometry.new(<span class="arg">width</span>=nil,
|
428
|
+
<span class="arg">height</span>=nil, <span class=
|
429
|
+
"arg">x</span>=nil, <span class="arg">y</span>=nil,
|
430
|
+
<span class="arg">flag</span>=nil) ->
|
431
|
+
<em>geometry</em></p>
|
433
432
|
</div>
|
434
433
|
|
435
434
|
<div class="desc">
|
@@ -548,7 +547,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
548
547
|
<h4>from_s</h4>
|
549
548
|
|
550
549
|
<p>Geometry.<span class="arg">from_s</span>(<span class=
|
551
|
-
"arg">string</span>) -> <em>
|
550
|
+
"arg">string</span>) -> <em>geometry</em></p>
|
552
551
|
</div>
|
553
552
|
|
554
553
|
<div class="desc">
|
@@ -561,8 +560,8 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
561
560
|
<div class="sig">
|
562
561
|
<h4>to_s</h4>
|
563
562
|
|
564
|
-
<p><span class="arg">
|
565
|
-
<em>
|
563
|
+
<p><span class="arg">geom.</span>to_s() ->
|
564
|
+
<em>string</em></p>
|
566
565
|
</div>
|
567
566
|
|
568
567
|
<div class="desc">
|
@@ -604,10 +603,9 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
604
603
|
<div class="sig">
|
605
604
|
<h4>new</h4>
|
606
605
|
|
607
|
-
<p>Pixel
|
608
|
-
"arg">
|
609
|
-
<span class="arg">
|
610
|
-
"arg">opacity</span>) -> <em>aPixel</em></p>
|
606
|
+
<p>Pixel.new(<span class="arg">red</span>, <span class=
|
607
|
+
"arg">green</span>, <span class="arg">blue</span>,
|
608
|
+
<span class="arg">opacity</span>) -> <em>pixel</em></p>
|
611
609
|
</div>
|
612
610
|
|
613
611
|
<div class="desc">
|
@@ -646,8 +644,8 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
646
644
|
<div class="sig">
|
647
645
|
<h4>from_color</h4>
|
648
646
|
|
649
|
-
<p>Pixel
|
650
|
-
|
647
|
+
<p>Pixel.from_color(<span class="arg">color_name</span>)
|
648
|
+
-> <em>pixel</em></p>
|
651
649
|
</div>
|
652
650
|
|
653
651
|
<div class="desc">
|
@@ -661,9 +659,8 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
661
659
|
<div class="sig">
|
662
660
|
<h4>from_HSL</h4>
|
663
661
|
|
664
|
-
<p>Pixel
|
665
|
-
|
666
|
-
<em>aPixel</em></p>
|
662
|
+
<p>Pixel.from_HSL(<span class="arg">[hue, saturation,
|
663
|
+
luminosity]</span>) -> <em>pixel</em></p>
|
667
664
|
</div>
|
668
665
|
|
669
666
|
<div class="desc">
|
@@ -713,7 +710,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
713
710
|
<h4 id="fcmp">fcmp</h4>
|
714
711
|
|
715
712
|
<p><span class="arg">pixel</span>.fcmp(<span class=
|
716
|
-
"arg">
|
713
|
+
"arg">pixel</span>, <span class="arg">fuzz</span>=0.0,
|
717
714
|
<span class="arg">colorspace</span>=RGBColorspace) ->
|
718
715
|
<code>true</code> <em>or</em> <code>false</code></p>
|
719
716
|
</div>
|
@@ -756,7 +753,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
756
753
|
<h4>intensity</h4>
|
757
754
|
|
758
755
|
<p><span class="arg">pixel</span>.intensity() ->
|
759
|
-
|
756
|
+
integer</p>
|
760
757
|
</div>
|
761
758
|
|
762
759
|
<div class="desc">
|
@@ -773,7 +770,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
773
770
|
"arg">compliance</span>=AllCompliance, <span class=
|
774
771
|
"arg">matte</span>=<code>false</code>, <span class=
|
775
772
|
"arg">depth</span>=<code>QuantumDepth</code>) ->
|
776
|
-
<em>
|
773
|
+
<em>string</em></p>
|
777
774
|
</div>
|
778
775
|
|
779
776
|
<div class="desc">
|
@@ -804,8 +801,8 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
804
801
|
<dt>depth</dt>
|
805
802
|
|
806
803
|
<dd>An image depth. The default is the quantum depth used
|
807
|
-
when ImageMagick was compiled. The values 16 and 32 can
|
808
|
-
|
804
|
+
when ImageMagick was compiled. The values 16 and 32 can be
|
805
|
+
used only when ImageMagick was compiled with the
|
809
806
|
appropriate QuantumDepth.</dd>
|
810
807
|
</dl>
|
811
808
|
|
@@ -821,7 +818,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
821
818
|
<h4>to_HSL</h4>
|
822
819
|
|
823
820
|
<p><span class="arg">pixel</span>.to_HSL ->
|
824
|
-
<em>
|
821
|
+
<em>array</em></p>
|
825
822
|
</div>
|
826
823
|
|
827
824
|
<div class="desc">
|
@@ -861,11 +858,10 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
861
858
|
<div class="sig">
|
862
859
|
<h4>new</h4>
|
863
860
|
|
864
|
-
<p>AffineMatrix
|
865
|
-
"arg">
|
866
|
-
"arg">
|
867
|
-
"arg">
|
868
|
-
<em>anAffineMatrix</em></p>
|
861
|
+
<p>AffineMatrix.new(<span class="arg">sx</span>, <span class=
|
862
|
+
"arg">rx</span>, <span class="arg">ry</span>, <span class=
|
863
|
+
"arg">sy</span>, <span class="arg">tx</span>, <span class=
|
864
|
+
"arg">ty</span>) -> <em>matrix</em></p>
|
869
865
|
</div>
|
870
866
|
|
871
867
|
<div class="desc">
|
@@ -905,11 +901,10 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
905
901
|
<div class="sig">
|
906
902
|
<h4>new</h4>
|
907
903
|
|
908
|
-
<p>Chromaticity
|
909
|
-
"arg">
|
910
|
-
"arg">green_primary</span>, <span class=
|
904
|
+
<p>Chromaticity.new(<span class="arg">red_primary</span>,
|
905
|
+
<span class="arg">green_primary</span>, <span class=
|
911
906
|
"arg">blue_primary</span>, <span class=
|
912
|
-
"arg">white_point</span>) -> <em>
|
907
|
+
"arg">white_point</span>) -> <em>chromaticity</em></p>
|
913
908
|
</div>
|
914
909
|
|
915
910
|
<div class="desc">
|
@@ -955,7 +950,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
955
950
|
<h4>new</h4>
|
956
951
|
|
957
952
|
<p>Point.new(<span class="arg">x</span>, <span class=
|
958
|
-
"arg">y</span>) -> <em>
|
953
|
+
"arg">y</span>) -> <em>point</em></p>
|
959
954
|
</div>
|
960
955
|
|
961
956
|
<div class="desc">
|
@@ -987,7 +982,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
987
982
|
|
988
983
|
<p>Primary.new(<span class="arg">x</span>, <span class=
|
989
984
|
"arg">y</span>, <span class="arg">z</span>) ->
|
990
|
-
<em>
|
985
|
+
<em>primary</em></p>
|
991
986
|
</div>
|
992
987
|
|
993
988
|
<div class="desc">
|
@@ -1020,7 +1015,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
1020
1015
|
|
1021
1016
|
<p>Rectangle.new(<span class="arg">width</span>, <span class=
|
1022
1017
|
"arg">height</span>, <span class="arg">x</span>, <span class=
|
1023
|
-
"arg">y</span>) -> <em>
|
1018
|
+
"arg">y</span>) -> <em>rectangle</em></p>
|
1024
1019
|
</div>
|
1025
1020
|
|
1026
1021
|
<div class="desc">
|
@@ -1060,7 +1055,7 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
1060
1055
|
|
1061
1056
|
<p>Segment.new(<span class="arg">x1</span>, <span class=
|
1062
1057
|
"arg">y1</span>, <span class="arg">x2</span>, <span class=
|
1063
|
-
"arg">y2</span>) -> <em>
|
1058
|
+
"arg">y2</span>) -> <em>segment</em></p>
|
1064
1059
|
</div>
|
1065
1060
|
|
1066
1061
|
<div class="desc">
|
@@ -1078,167 +1073,166 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
1078
1073
|
|
1079
1074
|
<div class="subhd">
|
1080
1075
|
<h2 id="fill">Fill classes</h2>
|
1076
|
+
</div>
|
1081
1077
|
|
1082
|
-
|
1083
|
-
|
1078
|
+
<div class="intro">
|
1079
|
+
<h3>Introduction</h3>
|
1080
|
+
|
1081
|
+
<p>The <a href="image1.html#new">Image#new</a> and <a href=
|
1082
|
+
"ilist.html#new_image">ImageList#new_image</a> methods accept a
|
1083
|
+
<code>Fill</code> object as an optional third argument. A
|
1084
|
+
<code>Fill</code> object is an instance of a <em>Fill
|
1085
|
+
class</em>. Fill classes are designed to support custom
|
1086
|
+
background fills. Each <code>Fill</code> class defines only two
|
1087
|
+
methods, <code>initialize</code> and <code>fill</code>. The
|
1088
|
+
<code>initialize</code> method is called from the application
|
1089
|
+
to create an instance of the fill class. It accepts any
|
1090
|
+
arguments and does whatever is necessary to create the fill.
|
1091
|
+
The <code>fill</code> method is called from the initialize
|
1092
|
+
method of the new image object, after the image is completely
|
1093
|
+
initialized. The <code>fill</code> method gets the image as its
|
1094
|
+
only argument and sends whatever methods are necessary to the
|
1095
|
+
image to fill the image's background.</p>
|
1096
|
+
|
1097
|
+
<p>RMagick supplies three Fill classes,
|
1098
|
+
<code><strong>HatchFill</strong></code>,
|
1099
|
+
<code><strong>GradientFill</strong></code>, and
|
1100
|
+
<code><strong>TextureFill</strong></code>. These classes are
|
1101
|
+
explained below. The <code>HatchFill</code> class is intended
|
1102
|
+
as an example of how to write a <code>Fill</code> class and is
|
1103
|
+
written in pure Ruby. You can read it in RMagick.rb.</p>
|
1104
|
+
</div>
|
1084
1105
|
|
1085
|
-
|
1086
|
-
|
1087
|
-
a <code>Fill</code> object as an optional third argument. A
|
1088
|
-
<code>Fill</code> object is an instance of a <em>Fill
|
1089
|
-
class</em>. Fill classes are designed to support custom
|
1090
|
-
background fills. Each <code>Fill</code> class defines only
|
1091
|
-
two methods, <code>initialize</code> and <code>fill</code>.
|
1092
|
-
The <code>initialize</code> method is called from the
|
1093
|
-
application to create an instance of the fill class. It
|
1094
|
-
accepts any arguments and does whatever is necessary to
|
1095
|
-
create the fill. The <code>fill</code> method is called from
|
1096
|
-
the initialize method of the new image object, after the
|
1097
|
-
image is completely initialized. The <code>fill</code> method
|
1098
|
-
gets the image as its only argument and sends whatever
|
1099
|
-
methods are necessary to the image to fill the image's
|
1100
|
-
background.</p>
|
1101
|
-
|
1102
|
-
<p>RMagick supplies three Fill classes,
|
1103
|
-
<code><strong>HatchFill</strong></code>,
|
1104
|
-
<code><strong>GradientFill</strong></code>, and
|
1105
|
-
<code><strong>TextureFill</strong></code>. These classes are
|
1106
|
-
explained below. The <code>HatchFill</code> class is intended
|
1107
|
-
as an example of how to write a <code>Fill</code> class and
|
1108
|
-
is written in pure Ruby. You can read it in RMagick.rb.</p>
|
1109
|
-
</div>
|
1106
|
+
<h3 id="GradientFill">class GradientFill <span class=
|
1107
|
+
"superclass">< Object</span></h3>
|
1110
1108
|
|
1111
|
-
|
1112
|
-
|
1109
|
+
<div class="sig">
|
1110
|
+
<h4>new</h4>
|
1113
1111
|
|
1114
|
-
<
|
1115
|
-
|
1112
|
+
<p>GradientFill.new(<span class="arg">x1</span>, <span class=
|
1113
|
+
"arg">y1</span>, <span class="arg">x2</span>, <span class=
|
1114
|
+
"arg">y2</span>, <span class="arg">start_color</span>,
|
1115
|
+
<span class="arg">end_color</span>) ->
|
1116
|
+
<em>gradient_fill</em></p>
|
1117
|
+
</div>
|
1116
1118
|
|
1117
|
-
|
1118
|
-
|
1119
|
-
<em>end_color</em>) -></span> <em>aGradientFill</em></p>
|
1120
|
-
</div>
|
1119
|
+
<div class="desc">
|
1120
|
+
<h5>Description</h5>
|
1121
1121
|
|
1122
|
-
<
|
1123
|
-
|
1122
|
+
<p>Creates a gradient fill. The <span class="arg">x1</span>,
|
1123
|
+
<span class="arg">y1</span>, and <span class="arg">x2</span>,
|
1124
|
+
<span class="arg">y2</span> arguments describe either a line or
|
1125
|
+
a point. If <span class="arg">x1</span> != <span class=
|
1126
|
+
"arg">x2</span> or <span class="arg">y1</span> != <span class=
|
1127
|
+
"arg">y2</span>, then the arguments describe the starting line
|
1128
|
+
for the gradient. The gradient will start with <span class=
|
1129
|
+
"arg">start_color</span> at the starting line and gradually
|
1130
|
+
transform to <span class="arg">end_color</span> as the distance
|
1131
|
+
increases from the starting line.</p>
|
1124
1132
|
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
starting line for the gradient. The gradient will start with
|
1132
|
-
<span class="arg">start_color</span> at the starting line and
|
1133
|
-
gradually transform to <span class="arg">end_color</span> as
|
1134
|
-
the distance increases from the starting line.</p>
|
1135
|
-
|
1136
|
-
<p>If <span class="arg">x1</span> == <span class=
|
1137
|
-
"arg">x2</span> and <span class="arg">y1</span> ==
|
1138
|
-
<span class="arg">y2</span>, the gradient radiates from the
|
1139
|
-
specified point, gradually transforming from <span class=
|
1140
|
-
"arg">start_color</span> to <span class=
|
1141
|
-
"arg">end_color</span>.</p>
|
1142
|
-
|
1143
|
-
<p>The line or point does not have to lie within the image
|
1144
|
-
bounds.</p>
|
1133
|
+
<p>If <span class="arg">x1</span> == <span class=
|
1134
|
+
"arg">x2</span> and <span class="arg">y1</span> == <span class=
|
1135
|
+
"arg">y2</span>, the gradient radiates from the specified
|
1136
|
+
point, gradually transforming from <span class=
|
1137
|
+
"arg">start_color</span> to <span class=
|
1138
|
+
"arg">end_color</span>.</p>
|
1145
1139
|
|
1146
|
-
|
1140
|
+
<p>The line or point does not have to lie within the image
|
1141
|
+
bounds.</p>
|
1147
1142
|
|
1148
|
-
|
1149
|
-
<dt>x1, y1</dt>
|
1143
|
+
<h5>Arguments</h5>
|
1150
1144
|
|
1151
|
-
|
1145
|
+
<dl>
|
1146
|
+
<dt>x1, y1</dt>
|
1152
1147
|
|
1153
|
-
|
1148
|
+
<dd>One of the starting line end-points.</dd>
|
1154
1149
|
|
1155
|
-
|
1150
|
+
<dt>x2, y2</dt>
|
1156
1151
|
|
1157
|
-
|
1152
|
+
<dd>The other end-point on the starting line.</dd>
|
1158
1153
|
|
1159
|
-
|
1154
|
+
<dt>start_color</dt>
|
1160
1155
|
|
1161
|
-
|
1156
|
+
<dd>The color at the starting line.</dd>
|
1162
1157
|
|
1163
|
-
|
1164
|
-
</dl>
|
1158
|
+
<dt>end_color</dt>
|
1165
1159
|
|
1166
|
-
<
|
1160
|
+
<dd>The color to which the gradient transforms.</dd>
|
1161
|
+
</dl>
|
1167
1162
|
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1163
|
+
<h5>Example</h5>
|
1164
|
+
|
1165
|
+
<p><a href="javascript:popup('gradientfill.rb.html')"><img src=
|
1166
|
+
"ex/gradientfill.gif" alt="GradientFill example" title=
|
1167
|
+
"Click to see the example script" /></a></p>
|
1168
|
+
</div>
|
1173
1169
|
|
1174
|
-
|
1175
|
-
|
1170
|
+
<h3 id="HatchFill">class HatchFill <span class="superclass"><
|
1171
|
+
Object</span></h3>
|
1176
1172
|
|
1177
|
-
|
1178
|
-
|
1173
|
+
<div class="sig">
|
1174
|
+
<h4>new</h4>
|
1179
1175
|
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1176
|
+
<p>HatchFill.new(<span class="arg">background_color</span>,
|
1177
|
+
<span class="arg">hatch_color</span>='white', <span class=
|
1178
|
+
"arg">dist</span>=10) -> <em>hatch_fill</em></p>
|
1179
|
+
</div>
|
1184
1180
|
|
1185
|
-
|
1186
|
-
|
1181
|
+
<div class="desc">
|
1182
|
+
<h4>Description</h4>
|
1187
1183
|
|
1188
|
-
|
1184
|
+
<p>Creates a cross-hatched fill.</p>
|
1189
1185
|
|
1190
|
-
|
1186
|
+
<h4>Arguments</h4>
|
1191
1187
|
|
1192
|
-
|
1193
|
-
|
1188
|
+
<dl>
|
1189
|
+
<dt>background_color</dt>
|
1194
1190
|
|
1195
|
-
|
1191
|
+
<dd>The image background color.</dd>
|
1196
1192
|
|
1197
|
-
|
1193
|
+
<dt>hatch_color</dt>
|
1198
1194
|
|
1199
|
-
|
1195
|
+
<dd>The color of the cross-hatch lines.</dd>
|
1200
1196
|
|
1201
|
-
|
1197
|
+
<dt>dist</dt>
|
1202
1198
|
|
1203
|
-
|
1204
|
-
|
1199
|
+
<dd>The distance between cross-hatch lines, in pixels.</dd>
|
1200
|
+
</dl>
|
1205
1201
|
|
1206
|
-
|
1202
|
+
<h4>Example</h4>
|
1207
1203
|
|
1208
|
-
|
1209
|
-
|
1210
|
-
|
1211
|
-
|
1204
|
+
<p><a href="javascript:popup('hatchfill.rb.html')"><img src=
|
1205
|
+
"ex/hatchfill.gif" alt="HatchFill example" title=
|
1206
|
+
"Click to see the example script" /></a></p>
|
1207
|
+
</div>
|
1212
1208
|
|
1213
|
-
|
1214
|
-
|
1209
|
+
<h3 id="TextureFill">class TextureFill <span class=
|
1210
|
+
"superclass">< Object</span></h3>
|
1215
1211
|
|
1216
|
-
|
1217
|
-
|
1212
|
+
<div class="sig">
|
1213
|
+
<h4>new</h4>
|
1218
1214
|
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1215
|
+
<p>TextureFill.new(<span class="arg">texture_image</span>)
|
1216
|
+
-> <em>texture_fill</em></p>
|
1217
|
+
</div>
|
1222
1218
|
|
1223
|
-
|
1224
|
-
|
1219
|
+
<div class="desc">
|
1220
|
+
<h5>Description</h5>
|
1225
1221
|
|
1226
|
-
|
1227
|
-
|
1222
|
+
<p>Creates a texture fill by tiling the <span class=
|
1223
|
+
"arg">texture_image</span> to fill the image.</p>
|
1228
1224
|
|
1229
|
-
|
1225
|
+
<h5>Arguments</h5>
|
1230
1226
|
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1227
|
+
<p>The texture to be used as the background. May be an image or
|
1228
|
+
imagelist. If <span class="arg">texture_image</span> is an
|
1229
|
+
imagelist, uses the current image.</p>
|
1234
1230
|
|
1235
|
-
|
1231
|
+
<h5>Example</h5>
|
1236
1232
|
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
"Click to see the example script" /></a></p>
|
1241
|
-
</div>
|
1233
|
+
<p><a href="javascript:popup('texturefill.rb.html')"><img src=
|
1234
|
+
"ex/texturefill.gif" alt="TextureFill example" title=
|
1235
|
+
"Click to see the example script" /></a></p>
|
1242
1236
|
</div>
|
1243
1237
|
|
1244
1238
|
<div class="subhd">
|
@@ -1246,22 +1240,26 @@ g = Magick::Geometry.new(100,200,nil,nil,Magick::AspectGeometry)
|
|
1246
1240
|
|
1247
1241
|
<h3 id="MagickError">class ImageMagickError <span class=
|
1248
1242
|
"superclass">< StandardError</span></h3>
|
1243
|
+
</div>
|
1249
1244
|
|
1250
|
-
|
1251
|
-
|
1245
|
+
<div class="desc">
|
1246
|
+
<h4>Description</h4>
|
1252
1247
|
|
1253
|
-
|
1254
|
-
|
1255
|
-
|
1256
|
-
</div>
|
1248
|
+
<p>When an ImageMagick function returns an error condition,
|
1249
|
+
RMagick raises this exception.</p>
|
1250
|
+
</div>
|
1257
1251
|
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1252
|
+
<h3 id="DestroyedImageError">class DestroyedImageError
|
1253
|
+
<span class="superclass">< StandardError</span></h3>
|
1254
|
+
|
1255
|
+
<div class="desc">
|
1261
1256
|
<h4>Description</h4>
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1257
|
+
|
1258
|
+
<p>When any Image method (except <a href=
|
1259
|
+
"image1.html#destroyed_q">destroyed?</a> and <a href=
|
1260
|
+
"image2.html#inspect">inspect</a>) is called after an image has
|
1261
|
+
been <a href="image1.html#destroy_bang">destroyed</a>, RMagick
|
1262
|
+
raises this exception.</p>
|
1265
1263
|
</div>
|
1266
1264
|
|
1267
1265
|
<p class="spacer"> </p>
|