Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

How to down-scale a bitmap with Image view?

$
0
0

Hi,

I was wondering what would be the best way (or rather, how would it be possible at all) to scale down a bitmap when using the Xamarin.Forms Image view.

In native Android there's a way that's suggested by Xamarin by using the BitmapFactory object, as shown at: developer.xamarin.com/recipes/android/resources/general/load_large_bitmaps_efficiently/.

The obvious way at current would probably be: to dynamically at run time scale down the bitmap to the desired size; have it saved to a file; and then providing that file name as the Source for the Image view. Needless to say that this is quite a detour and far from being efficient.

Hence my question: Has anyone got a better idea than that?

Many thanks in anticipation.


Viewing all articles
Browse latest Browse all 58056

Trending Articles