So I'm still trying to write an image viewer with PyGtk and Imlib. I
looked at the source to Electric Eyes, and this is what it does (im is the
GdkImlibImage created by a call to gdk_imlib_load_image()):
gdk_imlib_render(im, width, height);
pmap = gdk_imlib_move_image(im);
mask = gdk_imlib_move_mask(im);
gdk_window_set_back_pixmap(a->window, pmap, FALSE);
gdk_window_clear(a->window);
gdk_window_shape_combine_mask(a->window, mask, 0, 0);
gdk_imlib_free_pixmap(pmap);
The two interesting calls are the gdk_imlib_move_image and move_mask,
neither or which appears to be wrapped in the GdkImlib module. But they
seem to be an alternate means of getting a pixmap and a mask from Imlib,
other than get_pixmap.
Am I asking the wrong list? Is there a list specifically for the GdkImlib
wrapper? It doesn't seem like it should be this hard to write an image
viewer.
Tessa Lau
[EMAIL PROTECTED]
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk