Yes... Well, it depens what Imlib2 you use. I am on cvs now
(extracted last week), and the problem doesn't manifest
itself. I reverted to official Imlib2 package, and I saw
it.
Internally, the tint filter (
src/modules/filters/colormap.c) just
creates and applies a color modifier to the image, and there
is a small discrepancy in the way
imlib_apply_color_modifier_to_rectangle()
gets called on some versions.
Alternatively, if you really need this, you could do:
from adesklets.commands import *
from signal import pause
context_set_color(255,255,255,255)
#create a full white to blue channel only
#WARNING: I did this for the sake of simplicity:
#a true tint filter should also take care of others components.
context_set_color_modifier(create_color_modifier())
set_color_modifier_value(CHANNEL_RED,255,0)
set_color_modifier_value(CHANNEL_GREEN,255,0)
#create image with a height of 1 and apply color modifier
image_h1=create_image(1,1)
context_set_image(image_h1)
image_fill_rectangle(0,0,1,1)
apply_color_modifier()
#create image with a height of 2 and apply color modifier
image_h2=create_image(1,2)
context_set_image(image_h2)
image_fill_rectangle(0,0,1,2)
apply_color_modifier()
#setup window
window_reset(1)
window_resize(50,100)
window_show()
#scale each image over half of the window
context_set_image(0)
blend_image_onto_image(image_h1,1,0,0,1,1,
0,0,50,50)
blend_image_onto_image(image_h2,1,0,0,1,2,
0,50,50,50)
pause()