New to Telerik UI for WinFormsStart a free 30-day trial

How to create custom FreeFlow shape

Updated over 6 months ago

Environment

Product VersionProductAuthor
2022.2.622RadImageEditor for WinFormsDinko Krastev

Description

An example demonstrating how to create custom FreeFlow shape using GraphicsPath object.

imageeditor-custom-freeflow 001

Sample Implementation

C#

	public RadForm1()
	{
		InitializeComponent();
		this.radImageEditor1.LoadAsync("../../London_01.jpg");
		this.radImageEditor1.ImageLoaded += radImageEditor1_ImageLoaded;
	}
	private void radButton1_Click(object sender, EventArgs e)
	{
		GraphicsPath path = new GraphicsPath();
		path.AddLine(20, 20, 200, 20);
		path.AddLine(20, 20, 20, 200);
		path.AddEllipse(new Rectangle(30, 30, 40, 40));
		radImageEditor1.ImageEditorElement.DrawShape(path, Color.Red, Color.Green, 3);
		radImageEditor1.ImageEditorElement.SaveState();
	}
	

See Also

Understanding and Using Graphics Paths in GDI+

In this article
EnvironmentDescriptionSee Also
Not finding the help you need?
Contact Support