コード例 #1
0
        void ShowImageView(UIImage hiresImage)
        {
            var previewImage = ExampleImageUtils.MaxResizeImage(hiresImage, 900, 900);

            InvokeOnMainThread(() =>
            {
                selectedImageView.Image = previewImage;
                selectImageLabel.Hidden = true;
            });
        }
        void ShowImageView(UIImage originalImage, bool resizeThumbnail)
        {
            UIImage imageToShow;

            if (resizeThumbnail)
            {
                imageToShow = ExampleImageUtils.MaxResizeImage(originalImage, 900, 900);
            }
            else
            {
                imageToShow = originalImage;
            }

            InvokeOnMainThread(() =>
            {
                selectedImageView.Image = imageToShow;
                selectImageLabel.Hidden = true;
            });
        }