Why does this not work?
```
WriteableBitmap temps = BitmapFactory.New(100, 20).FromContent("/Assets/colorscale.png");
```
Get this error:
![Image](https://pbs.twimg.com/media/BS8PfBmCIAAaCnT.png)
Comments: Make sure to have the asset set as Build Action Content. Then check that path / uri you pass into the method. It does not look like the right format.
Also, this is not an issue. Next time use the Discussions forum, not the Issue tracker here.
```
WriteableBitmap temps = BitmapFactory.New(100, 20).FromContent("/Assets/colorscale.png");
```
Get this error:
![Image](https://pbs.twimg.com/media/BS8PfBmCIAAaCnT.png)
Comments: Make sure to have the asset set as Build Action Content. Then check that path / uri you pass into the method. It does not look like the right format.
Also, this is not an issue. Next time use the Discussions forum, not the Issue tracker here.