I have a C# project and I use some embedded images in this project. These images are in project resources and I use them in several parts of my application. Now, I need some of these images to be beside my .exe file
. And I need to do it dynamically when the program is running. So as I mentioned in the title of this question, I am going to extract files embedded in my application. A function like this:
public static void Extract(Bitmap imageToExtract, string destination);
That would be called like this:
Extract(WindowsFormsApplication1.Properties.Resources.PICT);
Edit: I can not use what explained in How can I extract a file from an embedded resource and save it to disk?. Because I need my resources to be private and so don't let other to take it up.