Re: pygtk: transparent pixmaps



So the sollution:
 
     pixbuf =  gtk.gdk.pixbuf_new_from_file("tmp.ppm")
     pixmap,mask = pixbuf.render_pixmap_and_mask()
     
 
     for line in lines:
         pixmap.draw_line(line[x], line[y]...)
 
     drawingarea.window.draw_drawable(..., pixmap, ....)
 
Thanks, Yetti!

Jachym
-- 
Jachym Cepicky
e-mail: jachym cepicky centrum cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------   
OFFICE:                                     
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky gdf-hannover de
URL:    http://gdf-hannover.de
Tel.:   +49 511-39088507


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]