1

I am importing image from camera which is being stored as a Xamarin.Forms.Image.

I need to convert this to System.Drawing.Image. Can anyone help me with this?

And also if you can help me on how to assign a .png image to System.Drawing.Image.

For example for a xamarin.forms.image we useimage.Source = "Image1.png"; Any similar code for System.Drawing.Image?

Thanks in advance !!!

Michael Benjamin
  • 346,931
  • 104
  • 581
  • 701
  • 1
    The camera returns a jpg - the Xamarin.Forms.Image is the control used to display it on the screen, not the image itself. System.Drawing.Image is a w32 construct that doesn't apply to Xamarin. – Jason Aug 02 '16 at 20:07
  • Is there no way we can convert the input jpg file to System.Drawing.Image? – Harish Velala Aug 02 '16 at 20:54
  • 1
    System.Drawing.Image does not exist in Xamarin, it is a Win32 object – Jason Aug 02 '16 at 21:35
  • 1
    it might be helpful if you tell us what you're trying to accomplish, and why you think creating a System.Drawing.Image will help you do it. – Jason Aug 02 '16 at 23:15
  • @Michael_B, did you solve this? – Jen143 May 17 '18 at 12:50
  • @Jen143, I only edited the question for quality. I didn't attempt to solve the problem. If you want to bring attention to this question, consider posting a [bounty](https://stackoverflow.com/help/bounty). – Michael Benjamin May 17 '18 at 13:32

0 Answers0