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

Copy Image to Clipboard

3 Answers 543 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Iron
Veteran
Claude asked on 29 Nov 2020, 09:17 PM

How do I copy the the current image to the Clipboard?

 

Clipboard.SetImage(radImageEditor1.?);

 

 

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 30 Nov 2020, 10:43 AM

Hello, Claude,    

The RadImageEditor.CurrentBitmap property stores the current image in the editor.

Copying an image to the clipboard sounds more like a general programming question. After further research in the appropriate forums, I have found the following useful threads on this topic:
https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.clipboard.setimage?view=net-5.0
https://social.msdn.microsoft.com/Forums/vstudio/en-US/f0ad430f-4c7b-4bee-928b-afd933a58769/copy-an-image-to-clipboard-in-png-format?forum=csharpgeneral
https://stackoverflow.com/questions/2002922/how-do-i-copy-a-chart-image-to-the-clipboard-using-c2010

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 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
Claude
Top achievements
Rank 1
Iron
Veteran
answered on 30 Nov 2020, 05:39 PM

Copying to the clipboard from a standard picturebox is not a problem   Done that many items.  For Example:

Clipboard.SetImage(pictureBox1.Image);

 

With the ImageEditor there is not a .Image Property or Method.  Not sure how to get the image from the imageEditor

 

radImageEditor.WHAT?

 

Or am I missing something

 

 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Dec 2020, 10:37 AM

Hello, Claude,

Have you tried the previously suggested RadImageEditor.CurrentBitmap property? It seems to work as expected on my end.

Clipboard.SetImage(this.radImageEditor1.CurrentBitmap);

Once the above code is executed, I can paste the image directly in Paint for example. Am I missing something? 

If you are still experiencing any further difficulties, it would be greatly appreciated if you can provide more details about the exact scenario that you have. Thus, we would be able to setup a sample project on our end and further investigate the precise case. Thank you in advance.

I believe that the provided solution would fit your requirements.

Regards,
Dess | Tech Support Engineer, Sr.
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
Claude
Top achievements
Rank 1
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Claude
Top achievements
Rank 1
Iron
Veteran
Share this question
or