# How to display simple image with slate widget and c++.

**URL:** <https://forums.unrealengine.com/t/how-to-display-simple-image-with-slate-widget-and-c/334315>\
**Category:** UI\
**Tags:** unreal-engine, slate, Widget, question\
**Created:** [October 5, 2015, 1:57pm UTC](https://forums.unrealengine.com/t/how-to-display-simple-image-with-slate-widget-and-c/334315 "2015-10-05T13:57:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waw\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Waw\_K](https://forums.unrealengine.com/u/Waw_K)\
**Post date:** [October 5, 2015, 1:57pm UTC](https://forums.unrealengine.com/t/how-to-display-simple-image-with-slate-widget-and-c/334315/1 "2015-10-05T13:57:14Z")

</div>

Hi! I’m trying to set background image with slate widget, but I can’t figure out how to do this. Menu and buttons widget works fine, but I can’t find good widget to put simple image.

---

<div class="post-metadata">

**Author:** ![szyszek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@szyszek](https://forums.unrealengine.com/u/szyszek)\
**Post date:** [October 5, 2015, 2:15pm UTC](https://forums.unrealengine.com/t/how-to-display-simple-image-with-slate-widget-and-c/334315/2 "2015-10-05T14:15:41Z")

</div>

`SImage` should do

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [October 5, 2015, 2:28pm UTC](https://forums.unrealengine.com/t/how-to-display-simple-image-with-slate-widget-and-c/334315/3 "2015-10-05T14:28:32Z")

</div>

But you need to register slate style first and set images there, if you custoimized buttons in Slate then you should know how to do it (if not create plugin with new wizard it has example of slate style) or you could load game resources from game module using GetSlateGameResources() if you maeking UI for game

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

---

<div class="post-metadata">

**Author:** ![Waw\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Waw\_K](https://forums.unrealengine.com/u/Waw_K)\
**Post date:** [October 5, 2015, 2:28pm UTC](https://forums.unrealengine.com/t/how-to-display-simple-image-with-slate-widget-and-c/334315/4 "2015-10-05T14:28:49Z")

</div>

I’ve found that already. But I’m not sure how to get reference to FSlateBrush in content.

---

<div class="post-metadata">

**Author:** ![Waw\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Waw\_K](https://forums.unrealengine.com/u/Waw_K)\
**Post date:** [October 5, 2015, 2:33pm UTC](https://forums.unrealengine.com/t/how-to-display-simple-image-with-slate-widget-and-c/334315/5 "2015-10-05T14:33:47Z")

</div>

Thanks for link. It looks helpful 🙂
