Embedding .png in Visual Studio Project
Posted on 2011-04-25
Is there a way of embedding .png images in a Visual Studio 2010 project? The project currently reads .png images from disk, for the purposes of changing button backgrounds. This works ok, but means that dozens of separate image files need to be maintained, rather than having the images incorporated into the .exe. .bmp files can be embedded easily, but do not retain the smooth shading of the original .png, nor the transparency. I can put them onto a uniform background, and therefore get round the transparency issue, but the images still come out "striated" where there is graduated shading, and thus unusable.