Skip to content

Trying to draw an image turns into an execption #3067

Answered by DemioMAD
tails1154 asked this question in Q&A
Discussion options

You must be logged in to vote

Try putting your bitmap outside the isoFiles folder and putting it in another folder, setting that file to Embedded Resource, and doing this:

// Make sure to include this: IL2CPU.Attribs
[ManifestResourceStream(ResourceName = "projectname.folder.filename.extension") public static byte[] smileyface;

// Bitmap initialization code
Bitmap smiley = new Bitmap(smileyface);

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@tails1154
Comment options

Comment options

You must be logged in to vote
2 replies
@tails1154
Comment options

@DemioMAD
Comment options

Answer selected by tails1154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants