I want to be able to dynamically place images over another image in my app, using Cairo or GTK functions. Imagine, for example, a sea in which the user places fish and sea animals: it will be like that.
How can I do this? If you don’t know but remember any simple program or demo that does that, it will be also very welcome!
Thank you!
You can use a GtkDrawingArea and draw the images on it using cairo:
Example:
To compile it on linux use:
Documentation:
Examples:
EDIT: If you need to be able to do this from Java, you can use java-gnome which provides bindings for both GTK and cairo.