Re: How can i create a alpha channel GdkPixbuf from a GdkPixmap and a GdkBitmap?
- From: Dov Grobgeld <dov grobgeld gmail com>
- To: Lothar Scholz <llothar web de>
- Cc: gtk-list gnome org
- Subject: Re: How can i create a alpha channel GdkPixbuf from a GdkPixmap and a GdkBitmap?
- Date: Mon, 10 May 2010 09:37:15 +0300
Just loop over the bitmap bit by bit and modify the alpha channel of the corresponding pixbuf pixel to 0. Or did I miss something?
Regards,
Dov
On Mon, May 10, 2010 at 08:52, Lothar Scholz
<llothar web de> wrote:
Hello gtk-list,
I have a programmatically created and drawn clipmask and the server
side pixmap. But i can't find out how i can create a pixbuf from these
two.
I got so far that this code gets me a pixbuf with an alphachannel
of all white pixels:
pixbuf = gdk_pixbuf_get_from_drawable(NULL,image->pixmap,NULL,0,0,0,0,-1,-1);
new_pixbuf = gdk_pixbuf_add_alpha(pixbuf,TRUE,255,255,255); //TODO
g_object_unref(pixbuf);
pixbuf = new_pixbuf;
Unfortunately this is not good enough for my problem.
--
Best regards,
Lothar mailto:llothar web de
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]