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.

@@ -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.1.0: class Image (instance methods p-w)</title>
9
+ <title>RMagick 2.2.0: class Image (instance methods p-w)</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -51,7 +51,7 @@
51
51
  </head>
52
52
 
53
53
  <body>
54
- <h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
54
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
55
55
 
56
56
  <div class="nav">
57
57
  &laquo;&nbsp;<a href="image2.html">Prev</a> | <a href=
@@ -73,6 +73,9 @@
73
73
  <ul>
74
74
  <li><a href="#palette_q">palette?</a></li>
75
75
 
76
+ <li><a href=
77
+ "#paint_transparent">paint_transparent</a></li>
78
+
76
79
  <li><a href="#pixel_color">pixel_color</a></li>
77
80
 
78
81
  <li><a href="#polaroid">polaroid</a></li>
@@ -179,13 +182,13 @@
179
182
  <li><a href="#store_pixels">store_pixels</a></li>
180
183
 
181
184
  <li><a href="#strip_bang">strip!</a></li>
185
+
186
+ <li><a href="#swirl">swirl</a></li>
182
187
  </ul>
183
188
  </div>
184
189
 
185
190
  <div class="toccol">
186
191
  <ul>
187
- <li><a href="#swirl">swirl</a></li>
188
-
189
192
  <li><a href="#sync_profiles">sync_profiles</a></li>
190
193
 
191
194
  <li><a href=
@@ -268,6 +271,67 @@
268
271
  <p>IsPaletteImage</p>
269
272
  </div>
270
273
 
274
+ <div class="sig">
275
+ <h3 id="paint_transparent">paint_transparent</h3>
276
+
277
+ <p><span class="arg">img</span>.paint_transparent(<span class=
278
+ "arg">color</span>, <span class=
279
+ "arg">opacity</span>=TransparentOpacity, <span class=
280
+ "arg">invert</span>=false, <span class=
281
+ "arg">fuzz</span>=<span class="arg">img</span>.fuzz) -&gt;
282
+ <em>image</em></p>
283
+ </div>
284
+
285
+ <div class="desc">
286
+ <h4>Description</h4>
287
+
288
+ <p>Changes the opacity value of all the pixels that match
289
+ <span class="arg">color</span> to the value specified by
290
+ <span class="arg">opacity</span>. If <span class=
291
+ "arg">invert</span> is true, changes the pixels that don't
292
+ match <span class="arg">color</span>.</p>
293
+
294
+ <h4>Arguments</h4>
295
+
296
+ <dl>
297
+ <dt>color</dt>
298
+
299
+ <dd>Either a <a href="imusage.html#color_names">color
300
+ name</a> or a <a href="struct.html#Pixel">pixel</a>.</dd>
301
+
302
+ <dt>opacity</dt>
303
+
304
+ <dd>The new opacity value, either an <a href=
305
+ "constants.html#Opacity">opacity</a> value or a number
306
+ between 0 and QuantumRange. The default is
307
+ TransparentOpacity.</dd>
308
+
309
+ <dt>invert</dt>
310
+
311
+ <dd>If true, changes all the pixels that are <em>not</em> the
312
+ target color.</dd>
313
+
314
+ <dt>fuzz</dt>
315
+
316
+ <dd>By default the pixel must match exactly, but you can
317
+ specify a tolerence level by passing a positive value.</dd>
318
+ </dl>
319
+
320
+ <h4>Returns</h4>
321
+
322
+ <p>A new image</p>
323
+
324
+ <h4>See also</h4>
325
+
326
+ <p><a href="image2.html#matte_replace">matte_replace</a>,
327
+ <a href="draw.html#matte">Draw#matte</a>, <a href=
328
+ "#transparent">transparent</a></p>
329
+
330
+ <h4>Magick API</h4>
331
+
332
+ <p>TransparentPaintImage</p>
333
+ </div>
334
+
271
335
  <div class="sig">
272
336
  <h3 id="pixel_color">pixel_color</h3>
273
337
 
@@ -1303,17 +1367,18 @@ random_threshold_channel(geom, RedChannel)
1303
1367
 
1304
1368
  <p class="rollover"><a href=
1305
1369
  "javascript:popup('resize_to_fill.rb.html')">
1306
- <!-- This img tag displays the original image when the mouse is over -->
1307
- <img id="cropless" style="display: none" onmouseout=
1308
- "this.style.display='none';cropped.style.display='';" src=
1309
- "ex/images/Flower_Hat.jpg" alt="crop_resize example" title=
1310
- "Click to see the example script" />
1311
- <!-- This img tag displays the framed image when the mouse is not over-->
1312
- <img style=
1370
+ <!-- This img tag displays the after image when the mouse is not over-->
1371
+ <img src="ex/resize_to_fill.jpg" style=
1313
1372
  "padding-left:62px; padding-right: 62px; padding-top: 87px;padding-bottom:87px;"
1314
- id="cropped" onmouseover=
1315
- "this.style.display='none';cropless.style.display='';" src=
1316
- "ex/resize_to_fill.jpg" alt="frame example" /></a> <img src=
1373
+ id="after_resize_to_fill" onmouseover=
1374
+ "this.style.display='none'; before_resize_to_fill.style.display='';"
1375
+ alt="resize_to_fill example" />
1376
+ <!-- This img tag displays the before image when moused over -->
1377
+ <img src="ex/images/Flower_Hat.jpg" style="display: none" id=
1378
+ "before_resize_to_fill" onmouseout=
1379
+ "this.style.display='none'; after_resize_to_fill.style.display='';"
1380
+ alt="resize_to_fill example" title=
1381
+ "Click to see the example script" /></a> <img src=
1317
1382
  "ex/images/spin.gif" alt="" style="margin-bottom: 230px" title=
1318
1383
  "Mouse over the example to see the original image" /></p>
1319
1384
 
@@ -1401,15 +1466,16 @@ random_threshold_channel(geom, RedChannel)
1401
1466
  <!-- This img tag displays the original image when the mouse is over -->
1402
1467
  <img id="rtfless" style="display: none" onmouseout=
1403
1468
  "this.style.display='none';rtf.style.display='';" src=
1404
- "ex/images/Flower_Hat.jpg" alt="resize_to_fill example" title=
1469
+ "ex/images/Flower_Hat.jpg" alt="resize_to_fit example" title=
1405
1470
  "Click to see the example script" />
1406
1471
  <!-- This img tag displays the framed image when the mouse is not over-->
1407
1472
  <img style=
1408
1473
  "padding-left:69px; padding-right: 69px; padding-top: 87px;padding-bottom:87px;"
1409
1474
  id="rtf" onmouseover=
1410
1475
  "this.style.display='none';rtfless.style.display='';" src=
1411
- "ex/resize_to_fit.jpg" alt="frame example" /></a> <img src=
1412
- "ex/images/spin.gif" alt="" style="margin-bottom: 230px" title=
1476
+ "ex/resize_to_fit.jpg" alt="resize_to_fit example" /></a>
1477
+ <img src="ex/images/spin.gif" alt="" style=
1478
+ "margin-bottom: 230px" title=
1413
1479
  "Mouse over the example to see the original image" /></p>
1414
1480
 
1415
1481
  <h4>See also</h4>
@@ -3205,11 +3271,12 @@ img.to_color(pixel)
3205
3271
  <h4>See also</h4>
3206
3272
 
3207
3273
  <p><a href="image2.html#matte_replace">matte_replace</a>,
3208
- <a href="draw.html#matte">Draw#matte</a></p>
3274
+ <a href="draw.html#matte">Draw#matte</a>, <a href=
3275
+ "#paint_transparent">paint_transparent</a></p>
3209
3276
 
3210
3277
  <h4>Magick API</h4>
3211
3278
 
3212
- <p>TransparentImage</p>
3279
+ <p>TransparentPaintImage</p>
3213
3280
  </div>
3214
3281
 
3215
3282
  <div class="sig">
@@ -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.1.0: class Image (attribute methods)</title>
9
+ <title>RMagick 2.2.0: class Image (attribute methods)</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.1.0 User's Guide and Reference</h6>
28
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
29
29
 
30
30
  <div class="nav">
31
31
  &laquo;&nbsp;<a href="ilist.html">Prev</a> | <a href=
@@ -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.1.0: ImageMagick Conventions</title>
9
+ <title>RMagick 2.2.0: ImageMagick Conventions</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -69,7 +69,7 @@
69
69
  </head>
70
70
 
71
71
  <body>
72
- <h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
72
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
73
73
 
74
74
  <div class="nav">
75
75
  &laquo;&nbsp;<a href="usage.html">Prev</a> | <a href=
@@ -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.1.0 User's Guide and Reference</title>
9
+ <title>RMagick 2.2.0 User's Guide and Reference</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <p id="magick">Ruby+ImageMagick<span class="tm">TM</span><br />
108
- Version 2.1.0</p>
108
+ Version 2.2.0</p>
109
109
 
110
110
  <h1>User's Guide and Reference</h1>
111
111
 
@@ -293,7 +293,7 @@
293
293
 
294
294
  <h3>About this document</h3>
295
295
 
296
- <p>This document describes Version 2.1.0 of RMagick. It is
296
+ <p>This document describes Version 2.2.0 of RMagick. It is
297
297
  divided into 4 parts. The first is this page. The second part is
298
298
  a user's guide covering both RMagick and ImageMagick usage and
299
299
  conventions. The third part is a reference guide to the
@@ -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.1.0: class Image::Info - Optional method
9
+ <title>RMagick 2.2.0: class Image::Info - Optional method
10
10
  arguments</title>
11
11
  <meta http-equiv="Content-Type" content=
12
12
  "text/html; charset=us-ascii" />
@@ -44,7 +44,7 @@
44
44
  </head>
45
45
 
46
46
  <body>
47
- <h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
47
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
48
48
 
49
49
  <div class="nav">
50
50
  &laquo;&nbsp;<a href="struct.html">Prev</a> | <a href=
@@ -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.1.0: module Magick</title>
9
+ <title>RMagick 2.2.0: module Magick</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -24,7 +24,7 @@
24
24
  </head>
25
25
 
26
26
  <body>
27
- <h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
27
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
28
28
 
29
29
  <div class="nav">
30
30
  &laquo;&nbsp;<a href="comtasks.html">Prev</a> | <a href=
@@ -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.1.0: Magick Command Options and Their Equivalent
9
+ <title>RMagick 2.2.0: Magick Command Options and Their Equivalent
10
10
  Methods</title>
11
11
  <meta http-equiv="Content-Type" content=
12
12
  "text/html; charset=us-ascii" />
@@ -70,7 +70,7 @@ td {
70
70
  </head>
71
71
 
72
72
  <body>
73
- <h6 id="header">RMagick 2.1.0 User's Guide and Reference</h6>
73
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
74
74
 
75
75
  <div class="nav">
76
76
  &laquo; <a href="index.html">Prev</a> | <a href=
@@ -108,7 +108,7 @@ td {
108
108
  the tables on this page to determine which RMagick methods
109
109
  correspond to the options used by these tools.</p>
110
110
 
111
- <p>The options listed below are for ImageMagick 6.3.7. Earlier
111
+ <p>The options listed below are for ImageMagick 6.3.8. Earlier
112
112
  releases of ImageMagick may not support all these options.
113
113
  Later releases of ImageMagick may have options that are not
114
114
  listed.</p>
@@ -1024,6 +1024,15 @@ td {
1024
1024
  (for annotation)</td>
1025
1025
  </tr>
1026
1026
 
1027
+ <tr>
1028
+ <td>-liquid-rescale <em>geometry</em></td>
1029
+
1030
+ <td>Image#<a href=
1031
+ "image2.html#liquid_rescale">liquid_rescale</a>(<em>new_width</em>,
1032
+ <em>new_height</em>, <em>delta_x</em>,
1033
+ <em>rigidity</em>)</td>
1034
+ </tr>
1035
+
1027
1036
  <tr>
1028
1037
  <td>-list <em>color</em><br />
1029
1038
  -list <em>format</em><br />
@@ -1192,11 +1201,15 @@ td {
1192
1201
  </tr>
1193
1202
 
1194
1203
  <tr>
1195
- <td>-opaque <em>color</em></td>
1204
+ <td>-opaque <em>color</em><br />
1205
+ +opaque <em>color</em></td>
1196
1206
 
1197
1207
  <td>Image#<a href=
1198
1208
  "image2.html#opaque">opaque</a>(<em>color</em>,
1199
- <em>fill</em>)</td>
1209
+ <em>fill</em>)<br />
1210
+ Image#<a href=
1211
+ "image2.html#opaque_channel">opaque_channel</a>(<em>color</em>,
1212
+ fill, opacity, true)</td>
1200
1213
  </tr>
1201
1214
 
1202
1215
  <tr>
@@ -1795,10 +1808,18 @@ td {
1795
1808
  </tr>
1796
1809
 
1797
1810
  <tr>
1798
- <td>-transparent <em>color</em></td>
1811
+ <td>-transparent <em>color</em><br />
1812
+ +transparent <em>color</em></td>
1799
1813
 
1800
- <td>Image#transparent(<em>color</em>, <em><a href=
1801
- "constants.html#Opacity">opacity</a></em>=TransparentOpacity)</td>
1814
+ <td>Image#<a href=
1815
+ "image3.html#transparent">transparent</a>(<em>color</em>,
1816
+ <em><a href=
1817
+ "constants.html#Opacity">opacity</a></em>=TransparentOpacity)<br />
1818
+
1819
+ Image#<a href=
1820
+ "image3.html#paint_transparent">paint_transparent</a>(<em>color</em>,
1821
+ <em><a href="constants.html#Opacity">opacity</a></em>,
1822
+ true)</td>
1802
1823
  </tr>
1803
1824
 
1804
1825
  <tr>
@@ -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.1.0: RVG Reference: RVG Class</title>
9
+ <title>RMagick 2.2.0: RVG Reference: RVG 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.1.0 User's Guide and Reference</h6>
30
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
31
31
 
32
32
  <div class="nav">
33
33
  &laquo;&nbsp;<a href="rvgtut.html">Prev</a> | <a href=
@@ -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.1.0: RVG Reference: RVG::ClipPath Class</title>
9
+ <title>RMagick 2.2.0: RVG Reference: RVG::ClipPath 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.1.0 User's Guide and Reference</h6>
30
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
31
31
 
32
32
  <div class="nav">
33
33
  &laquo;&nbsp;<a href="rvgpattern.html">Prev</a> | <a href=
@@ -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.1.0: RVG Reference: RVG::Group Class</title>
9
+ <title>RMagick 2.2.0: RVG Reference: RVG::Group 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.1.0 User's Guide and Reference</h6>
30
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
31
31
 
32
32
  <div class="nav">
33
33
  &laquo;&nbsp;<a href="rvg.html">Prev</a> | <a href=
@@ -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.1.0: RVG Reference: RVG::Image Class</title>
9
+ <title>RMagick 2.2.0: RVG Reference: RVG::Image 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.1.0 User's Guide and Reference</h6>
30
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
31
31
 
32
32
  <div class="nav">
33
33
  &laquo;&nbsp;<a href="rvggroup.html">Prev</a> | <a href=
@@ -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.1.0: RVG Reference: RVG::Pattern Class</title>
9
+ <title>RMagick 2.2.0: RVG Reference: RVG::Pattern 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.1.0 User's Guide and Reference</h6>
30
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
31
31
 
32
32
  <div class="nav">
33
33
  &laquo;&nbsp;<a href="rvgimage.html">Prev</a> | <a href=
@@ -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.1.0: RVG Reference: Shapes</title>
9
+ <title>RMagick 2.2.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.1.0 User's Guide and Reference</h6>
31
+ <h6 id="header">RMagick 2.2.0 User's Guide and Reference</h6>
32
32
 
33
33
  <div class="nav">
34
34
  &laquo;&nbsp;<a href="rvgstyle.html">Prev</a> | <a href=