Drawing from client side

4 posts, 1 answers
  1. Sabine
    Sabine avatar
    2 posts
    Member since:
    May 2014

    Posted 30 Apr Link to this post

    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

     

  2. Answer
    Vessy
    Admin
    Vessy avatar
    2039 posts

    Posted 30 Apr Link to this post

    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.
  3. Sabine
    Sabine avatar
    2 posts
    Member since:
    May 2014

    Posted 30 Apr Link to this post

    Hi Vessy,

    Thanks for your quick reply.

    Regards,

    Sabine

  4. Vessy
    Admin
    Vessy avatar
    2039 posts

    Posted 30 Apr Link to this post

    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.
Back to Top