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

Crop image from file (after picking it up with MediaPlugin from James Montemagno)

$
0
0

Hello!
I use MediaPlugin from James Montemagno to get an image (github.com/jamesmontemagno/MediaPlugin). This saves an image file in a specified path, wether the user chooses to take the image from the camera or from the gallery.

Now, the only thing I have is the path of the image's file. I want to take this image and crop it automatically in a square (centered in the image) removing top and bottom excess (or left and right excess if the image is in landscape).

I have only found answers saying that I should use System.Drawing.Bitmap but this is an only Windows class... Any suggestion?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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