是否有用于调整图像大小的库 [英] Is there a library to resize an image
本文介绍了是否有用于调整图像大小的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在使用FFImageLoading包进行缓存等以显示在ui上.我不确定FFImageLoading是否具有调整图像本身大小的功能,以便我可以保存它并通过Internet发送.
I am currently using FFImageLoading package to do caching etc to show on the ui. I am unsure whether FFImageLoading have function to resize the image itself so i can save it and send over the internet.
推荐答案
就这么简单:
var stream = await ImageService.Instance.LoadFile("someimage.png")
.DownSample(width: 200)
.AsPNGStreamAsync();
这篇关于是否有用于调整图像大小的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文