aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/canvas/clip/clip.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/canvas/clip/clip.qml')
-rw-r--r--examples/quick/canvas/clip/clip.qml2
1 files changed, 2 insertions, 0 deletions
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();
}
}