getBestSourceForSize



Chooses the image source with the size closest to the target image size.

Parameters

width

the width of the view that will be used to display this image

height

the height of the view that will be used to display this image

sources

the list of potential image sources to choose from

multiplier

the area of the view will be multiplied by this number before calculating the best source; this is useful if the image will be displayed bigger than the view (e.g. zoomed)