Re: pixbuf outermost pixels are white
- From: sandmann cs au dk (Søren Sandmann)
- To: Jan Kratochvil <jan jankratochvil net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: pixbuf outermost pixels are white
- Date: Fri, 23 Aug 2013 21:15:14 +0200
Jan Kratochvil <jan 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]