title: Problems with the brightness of the photo taken (Xamarin.Android)
body: <p>I'm creating an app in Xamarin Android. The UI is a single button, by clicking on which a photo is taken, but without the appearance of previews. Сode for taking photos and camera settings:</p>
  
  <pre><code> private void TakePhotoButton_Click(object sender, EventArgs e)
      {
          camera = Open();
          try
          {
              camera.SetPreviewTexture(new SurfaceTexture(10));
          }
          catch (IOException e1)
          {
              //Log.e(Version.APP_ID, e1.getMessage());
          }
  
          Parameters newParameters = GetModifiedCameraParameters();
          camera.SetParameters(newParameters);
          camera.StartPreview();
          camera.TakePicture(null, null, new PictureCallback());
      }
  
      private Parameters GetModifiedCameraParameters()
      {
          Parameters parameters = camera.GetParameters();
          Size size = FindMaxSize(parameters.SupportedPictureSizes);
  
          parameters.SetPreviewSize(640, 480);
          parameters.SetPictureSize(size.Width, size.Height);
          parameters.Set("contrast", "0");
          parameters.FlashMode = Parameters.FlashModeOff;
          parameters.FocusMode = Parameters.FocusModeAuto;
          parameters.SceneMode = Parameters.SceneModeAuto;
          parameters.AutoExposureLock = false;
          parameters.WhiteBalance = Parameters.WhiteBalanceAuto;
          parameters.ExposureCompensation = 12;
          parameters.PictureFormat = ImageFormat.Jpeg;
          parameters.JpegQuality = 100;
          parameters.SetRotation(90);    
  
          return parameters;
      }
  
      private Size FindMaxSize(IList&lt;Size&gt; sizes)
      {
              Size[] orderByDescending = sizes
                                      .OrderByDescending(x =&gt; x.Width)
                                      .ToArray();
              return orderByDescending[0];
      }
  </code></pre>
  
  <p>The result is a photo of good quality, but low brightness. I tried changing the exposure, ISO. Really increased the brightness of the photo contrast change. But the photo is still not bright enough. The manifest file is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.workwithcamera" android:installLocation="auto"&gt;
      &lt;uses-sdk android:minSdkVersion="21" android:targetSdkVersion="24" /&gt;
      &lt;application android:allowBackup="true" android:icon="@mipmap/ic_launcher_round" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"&gt;&lt;/application&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
    &lt;uses-permission android:name="android.permission.CAMERA"/&gt;
    &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
    &lt;uses-feature android:name="android.hardware.camera" /&gt;
    &lt;uses-feature android:name="android.hardware.camera.autofocus" /&gt;
  &lt;/manifest&gt;
  </code></pre>