Copy Paste Image to and from clipboard

Madhu.b.rokkam
Posted by Madhu.b.rokkam under Windows Forms category on | Points: 40 | Views : 5543
private void button_Click(object sender, EventArgs e)
{
Image bitmap = Bitmap.FromFile(@"C:\Users\Madhu\Pictures\vijay.bmp");
Clipboard.SetImage(bitmap);

Image img = Clipboard.GetImage();
img.Save(@"C:\Users\Madhu\Pictures\NewImage.jpg");
}


Copy the image to clipboard and paste from clipboard to a new location.

Comments or Responses

Login to post response