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

to save edited image with text box

3 Answers 180 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
sabel
Top achievements
Rank 1
sabel asked on 01 Dec 2020, 07:33 AM

Hi everyone,

 

Currently I'm doing insert custom textbox and button for image editor. The problem is I cannot save the image with the textbox. My expectation is the image will save with the textbox but hide the button. Here I attached the scene.

 

Thankyou

3 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 01 Dec 2020, 03:06 PM

Hello, Sabel,

It is strange why you want to have a text box control and a button over the opened image. RadImageEditor is intended to preview and edit images like crop, resize, flip, etc. not to display other controls. If you want to draw some text on the image you can use the built-in drawing functionality that RadImageEditor offers. You can draw text, draw shapes, or draw with a pen. 

More information is available here: https://docs.telerik.com/devtools/winforms/controls/image-editor/features/drawing. Attached you can find an edited image for your reference. If this, however, does not suit your requirement it would be greatly appreciated if you can provide more information about what is your exact custom requirement.

I hope this information helps. Let me know if you have further questions.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
sabel
Top achievements
Rank 1
answered on 02 Dec 2020, 01:41 AM

Hi Nadya,

Thank you for your respond. I'm find another way to insert the text because draw text provided by radimageeditor have dialog box. So I do custom button at the side bar to insert the textbox and delete button for delete the textbox. User can add any information inside the textbox.

Or do you have another way to hide the dialog box for draw text, and user can just add the text and locate the text at any area of image?

0
Nadya | Tech Support Engineer
Telerik team
answered on 02 Dec 2020, 01:46 PM

Hi, Sabel,

The DrawString method is responsible for drawing the text in RadImageEditor control. The following code snippets demonstrate how to draw directly text in RadImageEditor without the necessity of showing the DrawTextDialog dialog: 

 private void radButton1_Click(object sender, EventArgs e)
 {
     this.radImageEditor1.ImageEditorElement.DrawString("My text Here", 20, Color.Black, 5, 5, 0);
 }

I hope this information helps. If you have other questions don't hesitate to contact me.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ImageEditor
Asked by
sabel
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
sabel
Top achievements
Rank 1
Share this question
or