This is a migrated thread and some comments may be shown as answers.

How to sketch/draw shapes without using Draw Dialogs?

2 Answers 183 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Kerry
Top achievements
Rank 1
Kerry asked on 19 Jun 2019, 01:26 PM

I would like my users to red mark images before sending to us.What I am looking for is where I would have buttons above the image for:

Draw Line
Draw Circle
Draw Rectangle
Draw w/Pen

And each would be preset to width of 2, color red. I do not want to use your Draw Dialogs at all.

I would also want to have Undo/Redo available without using your tool palette.

Save I can handle already since you have the SameImageAs method.

How can I do this please?

2 Answers, 1 is accepted

Sort by
0
Kerry
Top achievements
Rank 1
answered on 19 Jun 2019, 09:45 PM

Never mind. I'm tenacious so I figured it out. Posting answer here for future users.

<p>Dim myShape As New Telerik.WinControls.UI.ImageEditor.ShapeInfo(Telerik.WinControls.UI.ImageEditor.ShapeType.Rectangle, Nothing, Drawing.Color.Red, 2)<br></p><p>RadImageEditor1.ImageEditorElement.StartDrawing(myShape)</p><p></p>

I must say it is a shame that no where on your site (even the search engine that return 334,000+items) has nothing for StartDrawing.

The Telerik controls have incredible depth. The documentation is lacking though.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Jun 2019, 06:21 AM
Hello, Kerry, 

I am glad that you have found a suitable solution for your case and thank you for sharing it with the community. Your feedback regarding the documentation is greatly appreciated and we will consider future improvement in order to avoid any further confusion.

Note that you have access to the source code and you can download it from your account. Then, you can get familiar with the internal implementation on any control, not only RadImageEditor. Additional information how to download the source code is available in the following help article: https://docs.telerik.com/devtools/winforms/installation-and-upgrades/download-product-files

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress TelerikRadImageEditor for Winforms
Tags
ImageEditor
Asked by
Kerry
Top achievements
Rank 1
Answers by
Kerry
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or