Hank
Hank

Reputation: 8477

Embed image in code with Visual Studio

I remember reading once that there was a way to embed an image into a code file (e.g. a screenshot or diagram) in Visual Studio, but now I can't find any reference to that feature.

Is this possible to do, or am I imagining things?

EDIT: I don't mean embed the image in the executable, for use at runtime. I mean link or embed it literally in the code, for use by developers.

Upvotes: 6

Views: 2873

Answers (3)

FakeTruth
FakeTruth

Reputation: 135

There is also a plugin for VS2012 and VS2013. At this moment installing for VS2013 does not seem to work for me though.

ImageComments extension on GitHub

Upvotes: 1

Paul Mrozowski
Paul Mrozowski

Reputation: 6734

There is a plug-in for VS 2010 that can do this:

Plug-in

Upvotes: 7

George Johnston
George Johnston

Reputation: 32258

You can embed images in your binary through the use of the ImageList control, which is typically used to store small icons for list controls, gridviews, etc., but could also be used for storing really any image for any purpose. A better solution would be to include a resource file and store your images there.

Upvotes: 0

Related Questions