simple composite of gdk_pixbuf_composite produce strange result, the BUG?

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

 



Hi,

Attached please find the code and the error png files...
I mean it maybe a bug of gdk_pixbuf_composite.

The GTK+ version is 2.12.5.

Code snip:

static void expose_cb(GtkWidget *widget, GdkEventExpose *event)
{
        gdk_pixbuf_composite(pixbuf_icon1, pixbuf1,
                        0, 0,
                        480, 272,
                        100.0, 100.0,
                        1.0, 1.0,
                        GDK_INTERP_NEAREST,
                        255);

        gdk_draw_pixbuf(GDK_DRAWABLE(widget->window),
widget->style->fg_gc[GTK_STATE_NORMAL],
                        pixbuf1,
                        0, 0,
                        0, 0,
                        WIDTH, HEIGHT,
                        GDK_RGB_DITHER_NONE,
                        0, 0);

        return;
}


Thanks.
Bin

Attachment: simpler.tgz
Description: GNU Zip compressed data

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux