Skip to content

Commit 62fa335

Browse files
authored
Add missing Draw#alpha method (#14)
rmagick/rmagick#1456
1 parent bffd878 commit 62fa335

27 files changed

+110
-65
lines changed

comtasks.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: Common Tasks</title>
7+
<title>RMagick 5.4.2: Common Tasks</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -25,7 +25,7 @@
2525
</head>
2626

2727
<body>
28-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
28+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
2929

3030
<div class="nav">&laquo;&nbsp;<a href="optequiv.html">Prev</a> | <a href="index.html">Contents</a> | <a href="magick.html">Next</a>&nbsp;&raquo;</div>
3131

constants.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: Constants</title>
7+
<title>RMagick 5.4.2: Constants</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -57,7 +57,7 @@
5757
</head>
5858

5959
<body>
60-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
60+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
6161

6262
<div class="nav">&laquo;&nbsp;<a href="info.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvgtut.html">Next</a>&nbsp;&raquo;</div>
6363

draw.html

Lines changed: 53 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: class Draw</title>
7+
<title>RMagick 5.4.2: class Draw</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -20,7 +20,7 @@
2020
</head>
2121

2222
<body>
23-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
23+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
2424

2525
<div class="nav">&laquo;&nbsp;<a href="image3.html">Prev</a> | <a href="index.html">Contents</a> | <a href="struct.html">Next</a>&nbsp;&raquo;</div>
2626

@@ -75,6 +75,8 @@ <h3>drawing primitive methods</h3>
7575
<ul>
7676
<li><a href="#affine">affine</a></li>
7777

78+
<li><a href="#alpha">alpha</a></li>
79+
7880
<li><a href="#arc">arc</a></li>
7981

8082
<li><a href="#bezier">bezier</a></li>
@@ -898,6 +900,43 @@ <h4>See also</h4>
898900
<a href="#translate">translate</a>
899901
</div>
900902

903+
<div class="sig">
904+
<h3 id="alpha">alpha</h3>
905+
906+
<p><span class="arg">draw</span>.alpha(<span class="arg">x, y, method</span>) -&gt; <em>self</em></p>
907+
</div>
908+
909+
<div class="desc">
910+
<h4>Description</h4>
911+
912+
<p>Set alpha (make transparent) in image according to the specified colorization rule.</p>
913+
914+
<h4>Arguments</h4>
915+
916+
<dl>
917+
<dt>x, y</dt>
918+
919+
<dd>The point in the <em>x</em> and <em>y</em> to start filling color</dd>
920+
921+
<dt>method</dt>
922+
923+
<dd>
924+
A <a href="constants.html#PaintMethod">PaintMethod</a> constant. If you use the <code>FillToBorderMethod</code>, assign the border color with the
925+
<code>Draw#border_color=</code> attribute before calling <a href="#draw">draw</a>.
926+
</dd>
927+
</dl>
928+
929+
<h4>Returns</h4>
930+
931+
<p>self</p>
932+
933+
<h4>Example</h4>
934+
<pre>
935+
draw.alpha(x, y, FillToBorderMethod)
936+
</pre
937+
>
938+
</div>
939+
901940
<div class="sig">
902941
<h3 id="arc">arc</h3>
903942

@@ -1196,10 +1235,18 @@ <h4>Description</h4>
11961235

11971236
<h4>Arguments</h4>
11981237

1199-
<p>
1200-
A <a href="constants.html#PaintMethod">PaintMethod</a> constant. If you use the <code>FillToBorderMethod</code>, assign the border color with the
1201-
<code>Draw#border_color=</code> attribute before calling <a href="#draw">draw</a>.
1202-
</p>
1238+
<dl>
1239+
<dt>x, y</dt>
1240+
1241+
<dd>The point in the <em>x</em> and <em>y</em> to start filling color</dd>
1242+
1243+
<dt>method</dt>
1244+
1245+
<dd>
1246+
A <a href="constants.html#PaintMethod">PaintMethod</a> constant. If you use the <code>FillToBorderMethod</code>, assign the border color with the
1247+
<code>Draw#border_color=</code> attribute before calling <a href="#draw">draw</a>.
1248+
</dd>
1249+
</dl>
12031250

12041251
<h4>Returns</h4>
12051252

ilist.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: class ImageList</title>
7+
<title>RMagick 5.4.2: class ImageList</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2005 by Timothy P. Hunter" />
@@ -14,7 +14,7 @@
1414
</head>
1515

1616
<body>
17-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
17+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
1818

1919
<div class="nav">&laquo;&nbsp;<a href="magick.html">Prev</a> | <a href="index.html">Contents</a> | <a href="imageattrs.html">Next</a>&nbsp;&raquo;</div>
2020

image1.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: class Image (class methods and instance methods a-d)</title>
7+
<title>RMagick 5.4.2: class Image (class methods and instance methods a-d)</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -39,7 +39,7 @@
3939
</head>
4040

4141
<body>
42-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
42+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
4343

4444
<div class="nav">&laquo;&nbsp;<a href="imageattrs.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image2.html">Next</a>&nbsp;&raquo;</div>
4545

image2.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: class Image (instance methods e-o)</title>
7+
<title>RMagick 5.4.2: class Image (instance methods e-o)</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -41,7 +41,7 @@
4141
</head>
4242

4343
<body>
44-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
44+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
4545

4646
<div class="nav">&laquo;&nbsp;<a href="image1.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image3.html">Next</a>&nbsp;&raquo;</div>
4747

image3.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: class Image (instance methods p-w)</title>
7+
<title>RMagick 5.4.2: class Image (instance methods p-w)</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -46,7 +46,7 @@
4646
</head>
4747

4848
<body>
49-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
49+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
5050

5151
<div class="nav">&laquo;&nbsp;<a href="image2.html">Prev</a> | <a href="index.html">Contents</a> | <a href="draw.html">Next</a>&nbsp;&raquo;</div>
5252

imageattrs.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: class Image (attribute methods)</title>
7+
<title>RMagick 5.4.2: class Image (attribute methods)</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -20,7 +20,7 @@
2020
</head>
2121

2222
<body>
23-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
23+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
2424

2525
<div class="nav">&laquo;&nbsp;<a href="ilist.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image1.html">Next</a>&nbsp;&raquo;</div>
2626

@@ -294,9 +294,7 @@ <h4>Returns</h4>
294294
<div class="sig">
295295
<h3 id="bounding_box">bounding_box</h3>
296296

297-
<p>
298-
<span class="arg">img.</span>bounding_box -&gt; <em>rectangle</em><br />
299-
</p>
297+
<p><span class="arg">img.</span>bounding_box -&gt; <em>rectangle</em><br /></p>
300298
</div>
301299

302300
<div class="desc">
@@ -1336,7 +1334,8 @@ <h3 id="transparent_color">transparent_color</h3>
13361334

13371335
<p>
13381336
<span class="arg">img</span>.transparent_color -&gt; <em>string</em><br />
1339-
<span class="arg">img.</span>transparent_color = <span class="arg">string</span> or <span class="arg">pixel</span> -&gt; <em>string</em> or <em>pixel</em>
1337+
<span class="arg">img.</span>transparent_color = <span class="arg">string</span> or <span class="arg">pixel</span> -&gt; <em>string</em> or
1338+
<em>pixel</em>
13401339
</p>
13411340
</div>
13421341

imusage.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: ImageMagick Conventions</title>
7+
<title>RMagick 5.4.2: ImageMagick Conventions</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -64,7 +64,7 @@
6464
</head>
6565

6666
<body>
67-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
67+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
6868

6969
<div class="nav">&laquo;&nbsp;<a href="usage.html">Prev</a> | <a href="index.html">Contents</a> | <a href="optequiv.html">Next</a>&nbsp;&raquo;</div>
7070

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
66

7-
<title>RMagick 5.4.0 User's Guide and Reference</title>
7+
<title>RMagick 5.4.2 User's Guide and Reference</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -102,7 +102,7 @@
102102

103103
<p id="magick">
104104
Ruby+ImageMagick<span class="tm">TM</span><br />
105-
Version 5.4.0
105+
Version 5.4.2
106106
</p>
107107

108108
<h1>User's Guide and Reference</h1>
@@ -277,7 +277,7 @@ <h3>What is RMagick?</h3>
277277
<h3>About this document</h3>
278278

279279
<p>
280-
This document describes Version 5.4.0 of RMagick. It is divided into 4 parts. The first is this page. The second part is a user's guide covering both
280+
This document describes Version 5.4.2 of RMagick. It is divided into 4 parts. The first is this page. The second part is a user's guide covering both
281281
RMagick and ImageMagick usage and conventions. The third part is a reference guide to the ImageList, Image, and Draw classes. This guide includes many
282282
examples. The fourth part covers Ruby Vector Graphics (RVG). RVG is a facade for Draw that provides a high-level API for scalable vector graphics. The RVG
283283
section includes a tutorial and complete reference documentation.

info.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: class Image::Info - Optional method arguments</title>
7+
<title>RMagick 5.4.2: class Image::Info - Optional method arguments</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -38,7 +38,7 @@
3838
</head>
3939

4040
<body>
41-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
41+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
4242

4343
<div class="nav">&laquo;&nbsp;<a href="struct.html">Prev</a> | <a href="index.html">Contents</a> | <a href="constants.html">Next</a>&nbsp;&raquo;</div>
4444

@@ -1072,14 +1072,13 @@ <h3 id="monochrome">monochrome</h3>
10721072

10731073
<div class="desc">
10741074
<h4>Description</h4>
1075-
10761075
</div>
10771076

10781077
<div class="sig">
10791078
<h3 id="number_scenes">number_scenes</h3>
10801079

10811080
<p>
1082-
<span class="arg">self.</span>number_scenes= <span class="arg"><code>integer</code></span></span>
1081+
<span class="arg">self.</span>number_scenes= <span class="arg"><code>integer</code></span>
10831082
</p>
10841083
</div>
10851084

magick.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: module Magick</title>
7+
<title>RMagick 5.4.2: module Magick</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -19,7 +19,7 @@
1919
</head>
2020

2121
<body>
22-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
22+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
2323

2424
<div class="nav">&laquo;&nbsp;<a href="comtasks.html">Prev</a> | <a href="index.html">Contents</a> | <a href="ilist.html">Next</a>&nbsp;&raquo;</div>
2525

optequiv.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: Magick Command Options and Their Equivalent Methods</title>
7+
<title>RMagick 5.4.2: Magick Command Options and Their Equivalent Methods</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -63,7 +63,7 @@
6363
</head>
6464

6565
<body>
66-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
66+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
6767

6868
<div class="nav">
6969
&laquo; <a href="index.html">Prev</a> | <a href="imusage.html">Contents</a> | <a href="comtasks.html">Next</a>

rvg.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: RVG Reference: RVG Class</title>
7+
<title>RMagick 5.4.2: RVG Reference: RVG Class</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -22,7 +22,7 @@
2222
</head>
2323

2424
<body>
25-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
25+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
2626

2727
<div class="nav">&laquo;&nbsp;<a href="rvgtut.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvggroup.html">Next</a>&nbsp;&raquo;</div>
2828

rvgclip.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
66

7-
<title>RMagick 5.4.0: RVG Reference: RVG::ClipPath Class</title>
7+
<title>RMagick 5.4.2: RVG Reference: RVG::ClipPath Class</title>
88
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
99
<meta name="GENERATOR" content="Quanta Plus" />
1010
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
@@ -22,7 +22,7 @@
2222
</head>
2323

2424
<body>
25-
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
25+
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>
2626

2727
<div class="nav">&laquo;&nbsp;<a href="rvgpattern.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvgtext.html">Next</a>&nbsp;&raquo;</div>
2828

0 commit comments

Comments
 (0)