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

Drawing from client side

3 Answers 38 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Sabine
Top achievements
Rank 1
Sabine asked on 30 Apr 2019, 10:38 AM

Hello,

I'm trying to use ImageEditor in one of our projects.

I would need to draw a line (or rectangle) over an existing image but without the mouse. The user will have to specify the coordinates in an input box and then a line is drawn.

So far, I've been able from client side to change the tool to pencil : radImageEditor1.editImageOnServer("Pencil", commandText, customArgument, callbackFunction);

But I can't found a way to draw from the client code.

Could you please tell me if this is possible or drawing is only allowed by using the mouse?

Regards,

Sabine

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 30 Apr 2019, 12:30 PM
Hi Sabine,

The current implementation of the drawing functionality of RadImageEditor does not allow inserting a drawn object programmatically and the only way to draw is using the mouse. The best suggestion I can give at the moment is to create a PNG image with a rectangle having he desired dimensions and use the InsertImage dialog of the control in order to apply it to the edited image:
https://demos.telerik.com/aspnet-ajax/imageeditor/examples/customdialoginsertimage/defaultcs.aspx

Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Sabine
Top achievements
Rank 1
answered on 30 Apr 2019, 12:54 PM

Hi Vessy,

Thanks for your quick reply.

Regards,

Sabine

0
Vessy
Telerik team
answered on 30 Apr 2019, 01:03 PM
Hi,

You are welcome, Sabine - let us know should any other question occur.

Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ImageEditor
Asked by
Sabine
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Sabine
Top achievements
Rank 1
Share this question
or