I develop a Windows Phone 8.1 app that downloads some data from our server and copy these files into the ApplicationData.Current.LocalCacheFolder
folder. There are also pictures in the folders with different scaling’s. For example:
- image.scale-100.png
- image.scale-140.png
- image.scale-240.png
The problem is that I cannot access this files without passing the correct file name. If I try to open image.png it will fail. But if I try to open e.g. image.scale-140.png it works well.
If I insert the images into my project Folder as a resource the app decides which image has the correct scaling for the Display and choose them.
Can I get my app to choose the right image automatically? Or must I determine the scaling manually and determine which images exists?