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

Scaling images to fill the display area

$
0
0

I'm making a Forms app using Image views with images loaded from shared resources. If the image file is larger than the display area, I can easily scale it down using the Aspect property of the Image view.

However, I don't seem to be able to scale up a small image to fill a larger display area. For example, if the image is 100x100 pixels, I can't make it take up more than 100x100 pixels, no matter what Aspect value I use, which makes the pictures look tiny on high resolution screens.

The workaround I'm using right now is to make the image files much higher resolution than I usually need, so they can be scaled down to fit the individual device screens. This is obviously not ideal.

Is there really no easy way to scale a picture so that it takes up a larger area on the screen than the size of the actual image file?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>