Hi guys, i’m trying to use MultiDensityImage with no luck.
<Image StretchMode="PointPrefer">
<MultiDensityImageSource>
<FileImageSource File="Assets/Pelota@1x.png" Density="1"/>
<FileImageSource File="Assets/Pelota@2x.png" Density="2"/>
</MultiDensityImageSource>
</Image>
<Image StretchMode="PointPrefer" File="Assets/Pelota@1x.png"/>
I’ve added the second image just to try a normal image. The result was this:
The big ball is the normal image, the small ball is the multidensity image. On @Jake suggestion, i’ve tried this:
<MultiDensityImageSource ux:Global="imageSource">
<FileImageSource File="Assets/Pelota@1x.png" Density="1"/>
<FileImageSource File="Assets/Pelota@2x.png" Density="2"/>
</MultiDensityImageSource>
<Image StretchMode="PointPrefer" Source="imageSource"/>
but i get Argument cannot be null. Parameter name: key
I’m testing on an iphone6s with iOS 9.3.1, fuse 0.12.3