From 0ac61552a47fedb0d3dfb4e690b10e998aaaaf92 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Fri, 20 Apr 2012 21:58:59 +1000 Subject: Expound on canvas example documentation Change-Id: I5bf82697dcbadaa9dc58e11ee22b2ab8c1a28852 Reviewed-by: Yunqiao Yin --- examples/quick/canvas/clip/clip.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/quick/canvas/clip/clip.qml') diff --git a/examples/quick/canvas/clip/clip.qml b/examples/quick/canvas/clip/clip.qml index e8597f062f..3fdc3e4906 100644 --- a/examples/quick/canvas/clip/clip.qml +++ b/examples/quick/canvas/clip/clip.qml @@ -126,9 +126,11 @@ Item { if (canvas.fill) { ctx.fill(); } + //! [0] ctx.clip(); ctx.drawImage(canvas.imagefile, 0, 0); + //! [0] ctx.restore(); } } -- cgit v1.2.3