Imagine that you've already saved your image file in your hard disk as image.png. Then assuming that you've correctly included SFML/Graphics.hpp and enabled all requirements for running SFML, here's a snippet that might help you:
Paste your image where your main project file is located .
For instance, Say i have my project file 'foo.vcproj' in c:/cpp/foo/
- this is the root directory for your project , so if i place my image on that directory as well i would refer to it with the address 'image.png' instead of the absolute path 'c:/cpp/foo/image.png', now if the image is further kept in the c:/cpp/foo/data/ directory i would refer to my image as 'data/image.png'.
EDIT: Wait, you said you are using vs2010 but this is the unix section , move this thread to windows section.
SFML (Simple and Fast Multimedia Library) is a portable and easy-to-use API for multimedia programming. SFML provides 2D graphics that are hardware accelerated with OpenGL and provides different modules made to ease programming games and multimedia applications. If you want to add image to your SFML program, you may need to download the image from the url and save it to your hard disk at first. Here is a tutorial that tells you how to download the image from the url: http://www.rasteredge.com/how-to/vb-net-imaging/download-from-url/