2

I'm using Clipboard.SetImage to copy an image, I can paste this image in to mspaint and it works fine. However if I try to paste the image in to WLW it just pastes an empty line. If I copy an image from my web browser and then paste that in to WLW then it works as expected. The image is from an ImageList. I've tried simply calling Clipboard.SetImage and I've also tried drawing the image on to a Bitmap and copying that:

Bitmap bmp = new Bitmap(img.Width, img.Height);
Graphics gfx = Graphics.FromImage(bmp);
gfx.Clear(Color.White);
gfx.DrawImageUnscaled(img, new Point(0, 0));
gfx.Dispose();
Clipboard.SetImage(bmp);

Any help would be great,

Thanks,

Joe

Joe
  • 21
  • 1
  • Maybe WLW (what ever that is) tries to read from the "data" part of the clipboard, try copying an image from the browser and see how it's saved in the clipboard, maybe it's got extra data in there that WLW needs to use. – Omer Tuchfeld Jun 22 '11 at 13:53

0 Answers0