I probably did a piss poor job of explaining myself so im
going to give it another shot.
If you load the same image from disk twice it seems like both
of the image IDs you get end up pointing to the same image.
So when you modify one of these images ( in memory, not on
disk ), the other is also modified.
I tried using image_set_changes_on_disk() but its not really
what im looking for. imlib_load_image_without_cache() might
be useful but I didn't see it in the adesklets
documentation.
Here is a quick example of what im talking about
#! /usr/bin/env python
from adesklets.commands import *
from time import time, sleep
from os.path import dirname
# wget http://adesklets.sourceforge.net/images/acpumon_thumb.jpg
#load image twice
image1=load_image(dirname(__file__)+'acpumon_thumb.jpg')
image2=load_image(dirname(__file__)+'acpumon_thumb.jpg')
#apply filter to image1 only
context_set_image(image1)
apply_filter('tint(alpha=128,red=0,green=200,blue=0);')
#setup window
image_w=image_get_width()
image_h=image_get_height()
window_resize(image_w,image_h*2)
window_show()
#display images one on top of the other
context_set_image(0)
blend_image_onto_image(image1,0,0,0,image_w,image_h,0,0,image_w,image_h)
blend_image_onto_image(image2,0,0,0,image_w,image_h,0,image_h,image_w,image_h)
sleep(99999)