Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add System.Drawing in xamarin? [closed]

I am trying for some time now to add System.Drawing to the references in Visual Studio 2015. Nothing seems to work. When I go into the add reference pane, there is no System.Drawing in the list.

I need the Bitmap class from System.Drawing not one from Android.Graphics

like image 859
user3128955 Avatar asked Jan 18 '16 19:01

user3128955


Video Answer


1 Answers

As @Cheesebaron quoted once if forum :

If you look at http://docs.xamarin.com/guides/android/advanced_topics/assemblies you will see that System.Drawing is not a part of the Assemblies shipped with Xamarin.Android, the same goes for Xamarin.iOS.

You will need to use the Android counterparts to filter images.


The alternative method is to add System.Drawing.dll as references.

Right click on References --> Edit References --> .Net Assembly --> Browse... --> C:\Windows\Microsoft.NET\Framework\v4.0.30319 --> select System.Drawing.dll.

Now try to make use of Bitmap class using System.Drawing;

enter image description here

like image 129
Yksh Avatar answered Nov 01 '22 19:11

Yksh