summaryrefslogtreecommitdiff
path: root/html/en/func/clipping.html
diff options
context:
space:
mode:
authorscuri <scuri>2009-08-13 02:27:01 +0000
committerscuri <scuri>2009-08-13 02:27:01 +0000
commit5e1d22b5c5aba5dd148d101ea56ece33519b0b9a (patch)
tree8b78fed65247b572aa7dd67902850ab1551ca5fb /html/en/func/clipping.html
parent4eb6a7ae0fa0fa11c7e538b948af1417764d4134 (diff)
*** empty log message ***
Diffstat (limited to 'html/en/func/clipping.html')
-rw-r--r--html/en/func/clipping.html7
1 files changed, 6 insertions, 1 deletions
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) -&gt; (old_mode: number) [in Lua]</pre>
polygon.</p>
<p>The value <b>CD_CLIPREGION</b> activates a complex clipping region. See the
documentation of <a href="region.html">Regions</a>.</p>
+ <p>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.</p>
<pre class="function"><span class="mainFunction">void cdCanvasClipArea(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]</span>
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]</pre>
- <p>Defines a rectangle for clipping. Only the points in the interval <i><b>xmin&lt;=
+ <p>Defines the current rectangle for clipping. Only the points in the interval <i><b>xmin&lt;=
x &lt;= xmax</b></i> and<b> </b><i><b>ymin &lt;= y &lt;= ymax</b></i> will
be printed. Default region: (0, w-1, 0, h-1).
</p>