How to add System.Drawing to xamarin?

I have been trying for some time to add System.Drawing to links in Visual Studio 2015. Nothing works. When I go to the add link bar, System.Drawing is not in the list.

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

+8
c # xamarin xamarin.android system.drawing
source share
1 answer

As @Cheesebaron quotes once, if the forum:

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

You will need Android files to filter images.


An alternative method is to add System.Drawing.dll as links.

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

Now try using the Bitmap class using System.Drawing;

enter image description here

0
source share

All Articles