johnny_device
asked on
Embedding .png in Visual Studio Project
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.
Any tips?
jd
Any tips?
jd
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the replies, guys. I'll split the spoils, because I can learn from more than one answer, but Jim(Beveridge)'s is the fullest response for me.
Regards,
jd
Regards,
jd
http://stackoverflow.com/questions/278838/visual-studio-how-to-store-an-image-resource-as-an-embedded-resource