# MultiDensityImage

**URL:** <https://forums.fusetools.com/t/multidensityimage/1947>\
**Category:** Bug Reports\
**Created:** [May 16, 2016, 8:06pm UTC](https://forums.fusetools.com/t/multidensityimage/1947 "2016-05-16T20:06:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gonzalo\_Vega](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/gonzalo_vega/32/180_2.png) [@Gonzalo\_Vega](https://forums.fusetools.com/u/Gonzalo_Vega)\
**Post date:** [May 16, 2016, 8:06pm UTC](https://forums.fusetools.com/t/multidensityimage/1947/1 "2016-05-16T20:06:06Z")

</div>

Hi guys, i’m trying to use MultiDensityImage with no luck.

```auto
<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:

![file](http://i.imgur.com/F3JqasD.jpg?1)

The big ball is the normal image, the small ball is the multidensity image. On @Jake suggestion, i’ve tried this:

```auto
<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

---

<div class="post-metadata">

**Author:** ![Gonzalo\_Vega](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/gonzalo_vega/32/180_2.png) [@Gonzalo\_Vega](https://forums.fusetools.com/u/Gonzalo_Vega)\
**Post date:** [May 25, 2016, 2:03pm UTC](https://forums.fusetools.com/t/multidensityimage/1947/2 "2016-05-25T14:03:58Z")

</div>

Hi guys, any news on this?

---

<div class="post-metadata">

**Author:** ![kusma](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kusma/32/595_2.png) [@kusma](https://forums.fusetools.com/u/kusma)\
**Post date:** [June 23, 2016, 2:28pm UTC](https://forums.fusetools.com/t/multidensityimage/1947/3 "2016-06-23T14:28:36Z")

</div>

I’m not sure where the suggestion to remove the `<Image>`-tag comes from, but that’s not expected to work (although I don’t think it should error _this_ particular way).

As for the first issue, I’m not entirely sure what problem you’re trying to show.

If the device has a density of 2, and you show both Assets/Pelota@2x.png with PointPrefer and Assets/Pelota@1x.png, then you’ll get two differently sized images, as the image shows.

I think you want to set `StretchMode="PixelPrecise"`…
