Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.36 KB

implement-drawtoolbase.md

File metadata and controls

27 lines (18 loc) · 1.36 KB
title page_title description slug tags published position
Implement DrawToolBase Class
Implement DrawToolBase Class
Check our "Implement DrawToolBase Class" documentation article for the RadImageEditor {{ site.framework_name }} control.
radimageeditor-howto-implement-drawtoolbase
draw, tool
true
1

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

  • [Create a Custom Tool]({%slug radimageeditor-howto-custom-tool%})
  • [Implement ToolBase Class]({%slug radimageeditor-howto-implement-toolbase%})