title: how to "convert a system.windows.control.image" to "System.Drawing.Image" in c#
body: <p>Hello friends i want to "convert a system.windows.control.image" to "System.Drawing.Image",but i am unable to do so.I am using below code for this</p>
  
  <pre><code>var e = (MouseButtonEventArgs)sender;
  var device = e.MouseDevice.DirectlyOver;
  System.Windows.Controls.Image img = (System.Windows.Controls.Image)device;
  </code></pre>
  
  <p>I have "img" i.e of type "system.windows.control.image" i need to convert it to bitmap or drawing type.</p>