title: how I can convert array of double to Bitmap of system by code xamarin to build app for android
body: <p>I am making an app in C# using Mono and I am referencing system.Drawing library which is giving me an error.</p>
  
  <p>Error   CS0433  The type 'Color' exists in both 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065' and 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'</p>
  
  <p>I tried to use</p>
  
  <pre><code>using color2 = Android.Graphics;
  using Color1 = System.Drawing;
  </code></pre>
  
  <p>but The error still exists.
  this  code :</p>
  
  <pre><code> public static Color1.Bitmap FromDoublesToGrayscal(double[,] doubles)
          {
              var result = new Color1.Bitmap(doubles.GetLength(0), doubles.GetLength(1));
              for (int x = 0; x &lt; result.Width; x++)
                  for (int y = 0; y &lt; result.Height; y++)
                  {
                      int level = (int)Math.Round(doubles[x, y] * 255);
                      if (level &gt; 255) level = 255; // just to be sure
                      if (level &lt; 0) level = 0; // just to be sure
                      result.SetPixel(x, y, Color1.Color.FromArgb(level, level,level));
                  }
              return result;
          }
  </code></pre>