# How to draw image directly from PC local disk?

**URL:** <https://forums.unrealengine.com/t/how-to-draw-image-directly-from-pc-local-disk/359324>\
**Category:** Asset Creation\
**Tags:** unreal-engine, UE4, CPP, question\
**Created:** [June 2, 2016, 2:27am UTC](https://forums.unrealengine.com/t/how-to-draw-image-directly-from-pc-local-disk/359324 "2016-06-02T02:27:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_615fe1ef](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_615fe1ef](https://forums.unrealengine.com/u/anonymous_user_615fe1ef)\
**Post date:** [June 2, 2016, 2:27am UTC](https://forums.unrealengine.com/t/how-to-draw-image-directly-from-pc-local-disk/359324/1 "2016-06-02T02:27:59Z")

</div>

I have used those code trying to draw images from local disk without importing to Editor, but failed,  
UTexture2D pTestTexture = Cast(StaticLoadObject(UTexture2D::StaticClass(), NULL, L"F:\test.bmp"));  
I am going to develop PC image Viewer by using UE4(Can view images form local disk),  
How to do it?  
Please help me, Thanks!
