Last hope....
- From: Nuno Afonso <hunchback netcabo pt>
- To: gtk-list gnome org
- Subject: Last hope....
- Date: 13 Apr 2002 20:56:17 +0100
Hi,
i'm trying (for the last time...) to draw a GdkPixmap with transparent
areas, but when i paint it, the transparent areas are always painted
with a color (the color passed on gdk_pixmap_create_from_xpm):
> GdkBitmap *mask;
>
> s = gtk_widget_get_style(window);
>
> imagem_ = gdk_pixmap_create_from_xpm(window->window, &mask, NULL,
> "./images/bola.xpm");
>
>gdk_gc_set_clip_mask(s->black_gc, mask);
....
>gdk_draw_pixmap(t->area()->window, t->area()->style->black_gc,
>t->bola()->imagem(), 0, 0, t->bola()->centro().x()-t->bola()->raio(),
>t->bola()->centro().y()-t->bola()->raio(), 10, 10);
Can anyone help me?
Thx for any help,
Afonso
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]