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

Resize image based on the original resolution

$
0
0

Hi!

I am using Xamarin Forms Labs to take a picture. In the TakePicture method i am using the mediafiles stream to resize the image the same way found here. I need to define a width and height for the image to be resized, but i want to do that based on the resolution of the original image from the camera. Because different phones return images with different resoultion, so its to avoid the picture being f. ex streched.

Anyone know how to get the original image resolution from the mediafile?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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