From c4ca69d3fa84dca98dce71c7a71b61413d6be165 Mon Sep 17 00:00:00 2001 From: scuri Date: Tue, 27 Oct 2009 19:45:36 +0000 Subject: Fixed: compositing in IMAGERGB when canvas has a semi-transparent alpha channel and a color with semi transparent alpha are used. --- html/en/func/color.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'html/en/func/color.html') 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) -> (r, g, b: number) [in Lua] cd.EncodeAlpha(color: lightuserdata, alpha: number) -> (color: lightuserdata) [in Lua]

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 Windows Using - GDI+ Base Driver and IMAGERGB driver. The + moment only the Win32 with GDI+, the + XRender and the IMAGERGB + 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 cdDecodeAlpha - function ot the cdAlpha macro to retrieve the alpha component.

+ function or the cdAlpha macro to retrieve the alpha component. + 0 is transparent, 255 is opaque.

unsigned char cdDecodeAlpha(long int color) [in C]
 
 cd.DecodeAlpha(color: lightuserdata) -> (a: number) [in Lua]
-- cgit v1.2.3