See the other message on the gtk-app-devel-list about this (transparent pngs). Basically when you have to create a mask GdkBitmap that you can use when painting the pixmap to the screen that identifies the opaque areas. For example (where d is some color) pixmap: bitmap: 000000 000000 0dddd0 011110 0dddd0 011110 000000 000000 There may be a way of generating a bitmap mask from the pixmap by specifying a particular color to be the transparent color. See the api for GdkBitmap. When loading from a xpm or file, you usually create a pixmap/bitmap pair. Alternatively you can use GdkPixbuf, and create an object with an inherent alpha (transparency) channel. Michael On Sat, 2002-07-27 at 04:44, Dorin Huzum wrote: > I have the fowlling code and I need that the backgroud for the pixmap > pixul to be transparent. > > pixul=gdk_pixmap_new(widget->window,20,20,-1); > gdk_draw_arc(pixul,gc[0],FALSE,0,0,20,20,0,64*360); > > ..... > > gdk_draw_drawable(widget->window,gc[0],pixul,0,0,p_x-10,p_y-10,21,21); > > Tks. > > ------------------------------------------------------------------------ > Intra pe forumul myMail.ro : http://www.mymail.ro/mymail/forum?s=5 -- Public key available from http://students.cs.byu.edu/~torriem
Attachment:
signature.asc
Description: This is a digitally signed message part