Example C code to display an image on the framebuffer of a Raspberry Pi Using the SDL and SDL_Image libraries. _I
To install the required libraries on your Raspberry Pi (debian)
apt-get install libsdl1.2-dev
apt-get install libsdl-image1.2-dev
Then just type make to compile the example.
You will need to run the program as root!
sudo ./test_image foo.jpg