Am I missing something here. Dont you do most of the work of changing an image/pixmap when it is a pixmap. So why would you want to copy an image? It the same Image as it was the last time you changed the pixmap. Isnt it?
If so, either just make two copies of the image when its a pixmap, or just have two pointers to the same image. Or when you change the image. (ie when you have had to make it a pixmap) copy it then
If so, either just make two copies of the image when its a pixmap, or just have two pointers to the same image. Or when you change the image. (ie when you have had to make it a pixmap) copy it then