예제 #1
0
        private void ShowImage(Uri data)
        {
            imageUri = Uri.FromFile(new File(GetRealPathFromURI(data)));

            var exif     = new ExifInterface(imageUri.Path);
            var location = exif.ReadLocation();

            FindViewById <TextView>(Resource.Id.imageLocationText).Text = location.ToFormattedString(this);

            var bitmap = BitmapLoader.LoadImage(
                imageUri.Path,
                Resources.DisplayMetrics.WidthPixels,
                Resources.DisplayMetrics.HeightPixels);

            FindViewById <ImageView>(Resource.Id.selected_image).SetImageBitmap(bitmap);
            FindViewById <Button>(Resource.Id.set_location).Visibility = ViewStates.Visible;
        }