summaryrefslogtreecommitdiff
path: root/html/en/func/color.html
diff options
context:
space:
mode:
authorscuri <scuri>2009-10-27 19:45:36 +0000
committerscuri <scuri>2009-10-27 19:45:36 +0000
commitc4ca69d3fa84dca98dce71c7a71b61413d6be165 (patch)
tree8c149cd3deaf31fa406270b26a45982471c8b88e /html/en/func/color.html
parent8a059c0ddda38d88aee6c8657b41ef81adb0171c (diff)
Fixed: compositing in IMAGERGB when canvas has a semi-transparent alpha channel and a color with semi transparent alpha are used.
Diffstat (limited to 'html/en/func/color.html')
-rw-r--r--html/en/func/color.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/html/en/func/color.html b/html/en/func/color.html
index 9ec9928..8efd8a4 100644
--- a/html/en/func/color.html
+++ b/html/en/func/color.html
@@ -52,12 +52,13 @@ cd.DecodeColor(color: lightuserdata) -&gt; (r, g, b: number) [in Lua]</pre>
cd.EncodeAlpha(color: lightuserdata, alpha: number) -&gt; (color: lightuserdata) [in Lua]</pre>
<p>Returns the given color coded with the alpha information. ATENTION: At the
- moment only the Win32 with GDI+ and the IMAGERGB drivers support alpha
- components in color coding. Se in <a href="../drv/gdiplus.html">Windows Using
- GDI+ Base Driver</a> and <a href="../drv/irgb.html">IMAGERGB driver</a>. The
+ moment only the <a href="../drv/gdiplus.html">Win32 with GDI+</a>, the
+ <a href="../drv/xrender.html">XRender</a> and the <a href="../drv/irgb.html">IMAGERGB</a>
+ drivers support alpha components in color coding. The
internal representation of the component is inverted, because the default value
must be 0 and opaque for backward compatibility, so you should use the <strong>cdDecodeAlpha</strong>
- function ot the <strong>cdAlpha</strong> macro to retrieve the alpha component.</p>
+ function or the <strong>cdAlpha</strong> macro to retrieve the alpha component.
+ 0 is transparent, 255 is opaque.</p>
<pre class="function"><span class="mainFunction">unsigned char <a name="cdDecodeAlpha">cdDecodeAlpha</a>(long int color) [in C]</span>
cd.DecodeAlpha(color: lightuserdata) -&gt; (a: number) [in Lua]</pre>