title: Xamarin Android (Forms) Image capture dimensions
body: <p>I have a surface view (a native view) in the android forms XAML like this</p>
  
  <pre><code>        &lt;ContentView x:Name="SurfaceView" WidthRequest="1080" HeightRequest="1920"&gt;
              &lt;androidViews:SurfaceView x:Arguments="{x:Static androidLocal:MainActivity.Instance}" /&gt;
          &lt;/ContentView&gt;
  </code></pre>
  
  <p>for preview.</p>
  
  <p>I am using a <code>ImageReader</code> for getting the captured result, its dimensions are set to 1080x1920.</p>
  
  <p>In the <code>OnImageAvailable(ImageReader reader)</code> callback the dimensions are correct, however when I get the <code>byte[]</code>, save it, move the jpeg to a computer and look at the details, it is only 960x1280... Why ?</p>
  
  <p>After desperate attempts at getting the correct size I said 'whatever' and set the <code>ImageReader</code> size to 10 times the original (10800x19200)
  and what do you know... it now produces the 'correct' image size (1080x1920)
  again... why?</p>
  
  <p>Thanks</p>
  
  <p>E1:Still active and looking for info as to why is it happening</p>