I'm currently developing a slide show program using GTK. I'm trying to create some transitional effects between images.
After some digging I found the gdk_window_clear_area() function, which clears an area of window to the background pixmap.
If I use two planes (current & background), I could load a new image to the background, then remove the current image using the gdk_window_clear_area() function. The wipe down effect would be something like -
for (y = 0 ; i < ymax ; y++)
gdk_window_clear_area ( window, 0, y, xmax, 1 ) ;
I'm struggling at the first hurdle loading the "current & background" images. Is there a simple snippet somebody could point me to?