From 1ad72d5276b1876bf218336a1ff47f086a0834c9 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 24 Jun 2010 20:32:39 +0000 Subject: *** empty log message *** --- html/en/func/wd.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'html/en/func/wd.html') diff --git a/html/en/func/wd.html b/html/en/func/wd.html index c7aacff..ebd9793 100644 --- a/html/en/func/wd.html +++ b/html/en/func/wd.html @@ -27,21 +27,21 @@ primitives and do NOT depend or use the cdCanvasTransform transformation matrix.


-
void wdCanvasWindow(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]
+    
void wdCanvasWindow(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]
     
 canvas:wWindow(xmin, xmax, ymin, ymax: number) [in Lua]

Configures a window in the world coordinate system to be used to convert world coordinates (with values in real numbers) into canvas coordinates (with values in integers). The default window is the size in millimeters of the whole canvas.

-
void wdCanvasGetWindow(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); [in C]
+    
void wdCanvasGetWindow(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); [in C]
 
 canvas:wGetWindow() -> (xmin, xmax, ymin, ymax: number) [in Lua]

Queries the current window in the world coordinate system being used to convert world coordinates into canvas coordinates (and the other way round). It is not necessary to provide all return pointers, you can provide only the desired values.

-
void wdCanvasViewport(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]
+    
void wdCanvasViewport(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]
 
 canvas:wViewport(xmin, xmax, ymin, ymax: number) [in Lua]

Configures a viewport in the canvas coordinate system to be used to convert @@ -49,27 +49,27 @@ canvas:wViewport(xmin, xmax, ymin, ymax: number) [in Lua]

values in integers). The default viewport is the whole canvas (0,w-1,0,h-1). If the canvas size is changed, the viewport will not be automatically updated.

-
void wdCanvasGetViewport(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
+    
void wdCanvasGetViewport(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
 
 canvas:wGetViewport() -> (xmin, xmax, ymin, ymax: number) [in Lua]

Queries the current viewport in the world coordinate system being used to convert world coordinates into canvas coordinates (and the other way round). It is not necessary to provide all return pointers, you can provide only the desired values and NULL for the others.

-
void wdCanvasWorld2Canvas(cdCanvas* canvas, double xw, double yw, int *xv, int *yv); [in C]
+    
void wdCanvasWorld2Canvas(cdCanvas* canvas, double xw, double yw, int *xv, int *yv); [in C]
 
 canvas:wWorld2Canvas(xw, yw: number) -> (xv, yv: number) [in Lua]

Converts world coordinates into canvas coordinates. It is not necessary to provide all return pointers, you can provide only the desired values and NULL for the others.

-
void wdCanvasCanvas2World(cdCanvas* canvas, int xv, int yv, double *xw, double *yw); [in C]
+    
void wdCanvasCanvas2World(cdCanvas* canvas, int xv, int yv, double *xw, double *yw); [in C]
 
 canvas:wCanvas2World(xv, yv: number) -> (xw, yw: number) [in Lua]

Converts canvas coordinates into world coordinates. It is not necessary to provide all return pointers, you can provide only the desired values and NULL for the others.

-
void wdCanvasSetTransform(cdCanvas* canvas, double sx, double sy, double tx, double ty); [in C]
+    
void wdCanvasSetTransform(cdCanvas* canvas, double sx, double sy, double tx, double ty); [in C]
     
 canvas:wSetTransform(sx, sy, tx, ty: number) [in Lua]

Configures the world coordinate system transformation to be used to @@ -77,7 +77,7 @@ canvas:wSetTransform(sx, sy, tx, ty: number) [in Lua]

coordinates (with values in integers). The transformation is automatically set by wdCanvasWindow and wdCanvasViewport. This has NO relation with cdCanvasTransform.

-
void wdCanvasGetTransform(cdCanvas* canvas, double *sx, double *sy, double *tx, double *ty); [in C]
+    
void wdCanvasGetTransform(cdCanvas* canvas, double *sx, double *sy, double *tx, double *ty); [in C]
 
 canvas:wGetTransform() -> (sx, sy, tx, ty: number) [in Lua]

Queries the current transformation being used to @@ -85,20 +85,20 @@ canvas:wGetTransform() -> (sx, sy, tx, ty: number) [in Lua]

is not necessary to provide all return pointers, you can provide only the desired values.

-
void wdCanvasTranslate(cdCanvas* canvas, double dtx, double dty); [in C]
+    
void wdCanvasTranslate(cdCanvas* canvas, double dtx, double dty); [in C]
     
 canvas:wTranslate(dtx, dty: number) [in Lua]

Translates the transformation by a delta, by adding the given values to the current tx and ty values.

-
void wdCanvasScale(cdCanvas* canvas, double dsx, double dsy); [in C]
+    
void wdCanvasScale(cdCanvas* canvas, double dsx, double dsy); [in C]
     
 canvas:wScale(dsx, dsy: number) [in Lua]

Scales the transformation by a delta, by multiplying the given values by - the current sx and sy values.

+ the current sx and sy values.

Extra

-
void wdCanvasHardcopy(cdCanvas *canvas, cdContext* ctx, void *data, void(*draw_func)(cdCanvas *canvas_copy)); [in C]
+    
void wdCanvasHardcopy(cdCanvas *canvas, cdContext* ctx, void *data, void(*draw_func)(cdCanvas *canvas_copy)); [in C]
 
 canvas:wCanvasHardcopy(ctx: number, data: string or userdata, draw_func: function) [in Lua]

Creates a new canvas, prepares Window and Viewport according to @@ -107,6 +107,6 @@ canvas:wCanvasHardcopy(ctx: number, data: string or userdata, draw_func: functio must use routines in WC) and, finally, removes the new canvas.

It is usually used for "hard copies" of drawings (print equivalent copy). The most common used contexts are Printer, PS and PDF.

- +
-- cgit v1.2.3