Is there a library to resize an image

杀马特。学长 韩版系。学妹 提交于 2020-07-09 13:09:29

问题


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.


回答1:


It's as easy as:

var stream = await ImageService.Instance.LoadFile("someimage.png")
     .DownSample(width: 200)
     .AsPNGStreamAsync();


来源:https://stackoverflow.com/questions/41625118/is-there-a-library-to-resize-an-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!