From 8c0ea13520d07bfb2ec17851dfbe099cb243cf99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Thu, 5 Nov 2015 14:20:54 +0100 Subject: [PATCH] Added QuadTo method --- src/Perspex.SceneGraph/Media/StreamGeometryContext.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Perspex.SceneGraph/Media/StreamGeometryContext.cs b/src/Perspex.SceneGraph/Media/StreamGeometryContext.cs index 1a82149735..0d0c345389 100644 --- a/src/Perspex.SceneGraph/Media/StreamGeometryContext.cs +++ b/src/Perspex.SceneGraph/Media/StreamGeometryContext.cs @@ -64,6 +64,16 @@ namespace Perspex.Media _impl.BezierTo(point1, point2, point3); } + /// + /// Draws a quadratic Bezier curve to the specified point + /// + /// The control point used to specify the shape of the curve. + /// The destination point for the end of the curve. + public void QuadTo(Point control, Point endPoint) + { + _impl.QuadTo(control, endPoint); + } + /// /// Draws a line to the specified point. ///