开发者

Embedded bitmap files and assembly size

开发者 https://www.devze.com 2023-04-03 21:57 出处:网络
I have several large embedded bitmap files in my resource project. The compiled exe is 13 megs. When I remove those bitmap files, it reduces to 6 me开发者_如何学运维gs.

I have several large embedded bitmap files in my resource project. The compiled exe is 13 megs. When I remove those bitmap files, it reduces to 6 me开发者_如何学运维gs.

I am trying to improve performance of the application. It is a WPF desktop application. Would it be better to load the images from disk rather than embed them in the exe? Should I convert them to png?


I suppose you should not embedded image into your compiled .exe, it's just the resource, then should load them from disk.

Generally, convert image files into .png is preferable.

Hope this help.

0

精彩评论

暂无评论...
验证码 换一张
取 消