need a better solution to use images in application

D

Dayne

Hi Everyone!

Currently, I am writing an application that uses a lot of bitmaps. I would
load a image by specifying "a path" on my hard drive. I would however like a
better solution --- don't like the fact that the images are exposed so
publicly. Any ideas?

Dayne
 
J

Jon Skeet [C# MVP]

Dayne said:
Currently, I am writing an application that uses a lot of bitmaps. I would
load a image by specifying "a path" on my hard drive. I would however like a
better solution --- don't like the fact that the images are exposed so
publicly. Any ideas?

Embed the images in your executable (set the build type to "Embedded
Resource" and either use ResourceManageer or
Assembly.GetManifestResourceStream to load them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top