Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Set default camera resolution in Xamarin.Forms

$
0
0

I'm using the Xamarin.Forms Labs project for my MediaPicker when taking photos from both the Android and iOS platforms. (We are not implemented WP). On my physical device, my camera has 6 different resolutions, ranging from 2.4M (16:9) at 2048x1152 all the way up to 16M (16:9) 5312x2988. By default it sets it to the 16M size, which is HUGE. The iPhone has similar ratios, as well defaulting to the highest quality. The API I would like to post my photo to needs quite a bit smaller file coming across the wire. Is there a way I can instruct the Camera Activity to use a smaller picture size? I do not mind writing custom code in specific platforms themselves, if that's what it takes.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>