What's the best practice in Uno to display an image? #18190
-
In maui, the best practice to display an image is using FFImageLoading, which provides lazy loading, cache, and automatic downsampling. In Uno, ImageEx and ImageCache from Windows Community Toolkit provide lazy loading and cache. But no automatic downsampling. What's the best practice in Uno to show an image? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Automatic downsampling is useful when a 900x900 image is loaded into a 30x30 image control. |
Beta Was this translation helpful? Give feedback.
-
Sorry, ImageEx and ImageCache seem to be deprecated in Windows Community Toolkit 8.0 |
Beta Was this translation helpful? Give feedback.
Indeed, we don't currently have clear guidance for this and it would be valuable. I will create a separate issue to track this. In general, all .NET libraries including FFImageLoading should be supported in Uno Platform, so feel free to test this against Uno as well.