From cc487d4de29a48d8e20a9a8492957a5950d5c181 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 21 May 2010 04:51:07 +0000 Subject: *** empty log message *** --- html/en/func/color.html | 5 +++-- html/en/func/init.html | 26 +++++++++++++++++--------- html/en/func/marks.html | 3 ++- html/en/func/other.html | 2 +- html/en/func/polygon.html | 30 ++++++++++++++++++++++++++++++ html/en/func/region.html | 2 +- html/en/func/server.html | 3 ++- html/en/func/vectortext.html | 4 ++-- html/en/func/wd.html | 2 +- 9 files changed, 59 insertions(+), 18 deletions(-) (limited to 'html/en/func') diff --git a/html/en/func/color.html b/html/en/func/color.html index 8efd8a4..fbd4b52 100644 --- a/html/en/func/color.html +++ b/html/en/func/color.html @@ -52,8 +52,9 @@ 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+, 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 

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]

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.

+context driver is used. See the CairoGDI+ +and XRender base drivers.

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.


diff --git a/html/en/func/polygon.html b/html/en/func/polygon.html index 4e18664..4ab5834 100644 --- a/html/en/func/polygon.html +++ b/html/en/func/polygon.html @@ -6,6 +6,11 @@ Polygons + @@ -82,6 +87,31 @@ canvas:End() [in Lua]

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: + + diff --git a/html/en/func/region.html b/html/en/func/region.html index 1581180..59874b8 100644 --- a/html/en/func/region.html +++ b/html/en/func/region.html @@ -67,7 +67,7 @@ canvas:wOffsetRegion(dx, dy: number) (WC) [in Lua]

Moves the current region by the given offset. In X-Windows, if the region moves to outside the canvas border, the part moved outside will be lost, the - region will need to be reconstruted.

+ region will need to be reconstructed.

void cdCanvasGetRegionBox(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
 void wdCanvasGetRegionBox(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); (WC) [in C]
diff --git a/html/en/func/server.html b/html/en/func/server.html
index 6663de5..2a9142e 100644
--- a/html/en/func/server.html
+++ b/html/en/func/server.html
@@ -21,7 +21,8 @@
   

It is called "server" images because the data is stored in a system private format, that the application (or the client) does not have access.

To create a server image there must be an active canvas of a driver with - server image support.

+ server image support. Only the base drivers Win32, GDI+, X-Windows, XRender + and Cairo, support server images.


cdImage* cdCanvasCreateImage(cdCanvas* canvas, int w, int h); [in C]
diff --git a/html/en/func/vectortext.html b/html/en/func/vectortext.html
index 84ca128..ec66aa2 100644
--- a/html/en/func/vectortext.html
+++ b/html/en/func/vectortext.html
@@ -14,8 +14,8 @@
       left to right.

Vector Text Parameters

-

All vector text drawing in all drivers are simulated using other CD - primitives.

+

All vector text drawing in all drivers are simulated with other CD + primitives using polygons only.


void cdCanvasVectorText(cdCanvas* canvas, int x, int y, const char* text); [in C]
 void wdCanvasVectorText(cdCanvas* canvas, double x, double y, const char* text); (WC) [in C]
diff --git a/html/en/func/wd.html b/html/en/func/wd.html
index 938d19d..02fda2e 100644
--- a/html/en/func/wd.html
+++ b/html/en/func/wd.html
@@ -24,7 +24,7 @@
       if the canvas has a small size the picture quality will be poor. To increase 
       picture quality create a canvas with a larger size, if possible.

All World Coordinate drawing in all drivers are simulated using other CD - primitives.

+ primitives and do NOT depend or use the Transformation matrix.


void wdCanvasWindow(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]
     
-- 
cgit v1.2.3