New to Telerik UI for WPF? Download free 30-day trial

Implement DrawToolBase Class

The DrawToolBase class represents an abstraction of a tool, which is responsible for drawing geometries over an image. This is the base class of the Shape and Drawing tools. This article will describe the members of this class.

  • StartDraw (Point currentPoint): Starts the drawing of a geometry

  • Draw (Point currentPoint): Draws a geometry

  • EndDraw (Point currentPoint): Ends the drawing of a geometry

  • SetPathProperties (Path path): Passes as a parameter the Path object which shall get the drawn geometry data later. You can set properties like Stroke, Fill, StrokeThickness, StrokeLineJoin and etc. The method is invoked at the beginning of the drawing.

See also

In this article