Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Is it possible to compile bitmaps directly into the executable? I'd hate to tug around an extra 15k file when it's not necessary.
Gamer extraordinaire. Programmer wannabe.
  • *Experts*
Posted

Sure. Add it to your project and change it's Compile Action to "Embedded Resource".

 

Then access it like this:

Image.FromStream([Assembly].GetExecutingAssembly.GetManifestResourceStream("Namespace.filename.ext"))

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...