[Glade-users] transparent pixmap



Hallo,

maybe a bit offtopic, but I'll try: How to make transparent pixmaps?

Task: I need to display 2 layers in gtk.DrawingArea:

    1 - background PNG file
    2 - drawings over this file

for 1, I use 
    pixbuf =  gtk.gdk.pixbuf_new_from_file(tmpPpmFile)

for 2, I use

    pixmap.draw_line(...)

When I call 

    drawingarea.window.draw_pixbuf(...,pixbuf,0,0,0,0,.....)
    drawingarea.window.draw_drawable(..., pixmap, ....)

The area appears black. Places, which should be transparent, are just
black :-(

How would you perform this task?

Thanks for hints

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.ximian.com/pipermail/glade-users/attachments/20060606/5c6b8d9f/attachment.bin



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