BrokeMyLegBiking
BrokeMyLegBiking

Reputation: 5988

Embedded bitmap files and assembly size

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 megs.

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?

Upvotes: 0

Views: 164

Answers (1)

Thinhbk
Thinhbk

Reputation: 2214

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.

Upvotes: 1

Related Questions