Esempio n. 1
0
        private async Task PresentPhotoAsync(global::Android.Net.Uri uri)
        {
            Glide.With(this).AsBitmap().Load(uri).Into(_takenPhotoImageView);

            var stream = await uri.RotatePhotoAsync(
                ContentResolver,
                Resources.DisplayMetrics.HeightPixels,
                Resources.DisplayMetrics.WidthPixels);

            _photoStream?.Dispose();
            stream.Position = 0;

            _photoStream = stream;
        }