示例#1
0
        private async Task <StorageFile> ScaleImageAync(StorageFile file)
        {
            var imageResizer = new ImageResizer(new SizeValidator(40, 2600));

            imageResizer.EnsureSuccesfullScale();

            ImageResult result = await imageResizer.ResizeAsync(file);

            file = result.File as StorageFile;
            return(file);
        }