New to Telerik UI for WPFStart a free 30-day trial

Paste an Image from the Clipboard to RadImageEditor

Updated on Sep 15, 2025

Environment

Product Version2019.1.220
ProductRadImageEditor for WPF

Description

Paste an image file or selection from the clipboard to RadImageEditor.

Solution

The following code snippet demonstrates how to get an image from the clipboard and load it in RadImageEditor.

C#

	this.ImageEditor.KeyUp += (s, e) =>
	{
		if (e.Key == Key.V && KeyboardModifiers.IsControlDown)
		{
			var image = Clipboard.GetImage();
			if (image != null)
			{
				this.ImageEditor.Image = new RadBitmap(image);
			}
			else
			{
				var files = Clipboard.GetFileDropList();

				if (files.Count > 0)
				{
				 	var file = new FileStream(files[0], FileMode.Open);
				 	this.ImageEditor.Image = new RadBitmap(file);
				}
			}
		}
	};

The first if statement checks whether an image was copied from another image. If this is not the case, we check whether a whole image file has been copied to the clipboard.

In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support