From cc487d4de29a48d8e20a9a8492957a5950d5c181 Mon Sep 17 00:00:00 2001
From: scuri Returns the given color coded with the alpha information. ATENTION: At the
- moment only the Win32 with GDI+, the
- XRender and the IMAGERGB
+ moment only the Cairo,
+ GDI+, XRender
+ and 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
diff --git a/html/en/func/init.html b/html/en/func/init.html
index 9cdee9e..32a1ab6 100644
--- a/html/en/func/init.html
+++ b/html/en/func/init.html
@@ -41,7 +41,9 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas)
Image-Based Drivers File-Based Drivers Initializes the context driver to use another context replacing the standard drivers.
This functions is only available when a library containing a "ContextPlus"
-context driver is used. See the GDI+ base
-driver and the XRender base driver.
+ CD_PICTURE = Picture in
+ memory (cdpicture.h).
@@ -50,23 +52,29 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas)
-
+
+
cdCanvas* cdCreateCanvasf(cdContext *ctx, const char* format, ...); [in C]
@@ -115,8 +123,8 @@ cd.UseContextPlus(use: boolean) -> (old_use: boolean) [in Lua]
cd.InitContextPlus() [in Lua]
In Lua, when using require"cdluacontextplus" this function will be automatically called.
diff --git a/html/en/func/marks.html b/html/en/func/marks.html index b68db35..e467c10 100644 --- a/html/en/func/marks.html +++ b/html/en/func/marks.html @@ -25,7 +25,8 @@ canvas:Pixel(x, y: number, color: lightuserdata) [in Lua] canvas:wPixel(x, y: number, color: lightuserdata) (WC) [in Lua]Configures the pixel (x,y) with the color defined by color. It is the smallest element of the canvas. It depends only - on global attributes of the canvas.
+ on global attributes of the canvas. It can be very slow on some drivers. + Sometimes it is implemented as a rectangle with size 1x1.void cdCanvasMark(cdCanvas* canvas, int x, int y); [in C]
void wdCanvasMark(cdCanvas* canvas, double x, double y); (WC) [in C]
diff --git a/html/en/func/other.html b/html/en/func/other.html
index b493ae5..d334508 100644
--- a/html/en/func/other.html
+++ b/html/en/func/other.html
@@ -48,7 +48,7 @@ cd._VERSION
cd._VERSION_DATE
cd._VERSION_NUMBER
- Usefull definitions. They have the same value returned by cdVersion* +
Useful definitions. They have the same value returned by cdVersion* functions, except that they do not include the build number.
Ends the polygon's definition and draws it.
++"PATH": allows to create + a complex path using CD primitives and then fill, stroke or clip using the + new path. Must be used with the following parameters: