5

I would like to convert my BitmapImage to a System.Drawing.Image?

This is my BitmapImage:

BitmapImage bmi = new BitmapImage(new Uri(someString, UriKind.Absolute));

Now, how would i create a System.Drawing.Image from my bmi?

KV Prajapati
  • 93,659
  • 19
  • 148
  • 186
Willem
  • 9,166
  • 17
  • 68
  • 92

1 Answers1

2

MSDN has a very good sample for interop between BitmapImage and System.Drawing.Image - see http://blogs.msdn.com/b/rwlodarc/archive/2007/01/03/wpf-bitmapsource-and-gdi-bitmap-interop.aspx

Yahia
  • 69,653
  • 9
  • 115
  • 144
  • Hey, i took a look at the examples but couldn't find the answer on the question above. Could someone post a little snippet of what you have to do? – andineupert Mar 15 '14 at 11:11