From 5e1d22b5c5aba5dd148d101ea56ece33519b0b9a Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 13 Aug 2009 02:27:01 +0000 Subject: *** empty log message *** --- html/en/func/clipping.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'html') diff --git a/html/en/func/clipping.html b/html/en/func/clipping.html index b30db55..2211c76 100644 --- a/html/en/func/clipping.html +++ b/html/en/func/clipping.html @@ -36,13 +36,18 @@ canvas:Clip(mode: number) -> (old_mode: number) [in Lua] polygon.

The value CD_CLIPREGION activates a complex clipping region. See the documentation of Regions.

+

The defined clipping area, polygon and complex regions are stored + internally, so you may define them independently and switch between area, + polygon and complex region without having to define them again. Also if the + active clipping region is re-defined it immediately becomes the current + clipping region.

void cdCanvasClipArea(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]
 void cdfCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]
 void wdCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); (WC) [in C]
 
 canvas:ClipArea(xmin, xmax, ymin, ymax: number) [in Lua]
 canvas:wClipArea(xmin, xmax, ymin, ymax: number) (WC) [in Lua]
-

Defines a rectangle for clipping. Only the points in the interval xmin<= +

Defines the current rectangle for clipping. Only the points in the interval xmin<= x <= xmax and ymin <= y <= ymax will be printed. Default region: (0, w-1, 0, h-1).

-- cgit v1.2.3