Jan Kratochvil <j...@jankratochvil.net> writes: > Hi, > > I found somewhere on web how to draw custom data images into a widget using > Pixbuf. It basically works. > > Unfortunately the image always has the outermost source pixels mixed with > white border. I want the whole window to be just blue but it is not: > http://www.jankratochvil.net/t/pixbuf.png > Fedora 19 x86_64: gtk3-3.8.2-2.fc19.x86_64 > gtkmm30-3.8.1-1.fc19.x86_64
You probably want to set the extend mode to CAIRO_EXTEND_PAD by doing the C++ equivalent of this: cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_PAD); after setting the pixbuf as the cairo source. Søren _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list