[Poppler-bugs] [Bug 20045] setPaperColor in CairoOutputDev
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Feb 23 16:23:23 PST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=20045
--- Comment #2 from Mihail Zenkov <mihail.zenkov at gmail.com> 2009-02-23 16:23:22 PST ---
You right. I look to demo, this way work for cairo, but not for
poppler_page_render_to_pixbuf
My changes in demo to test:
diff -ur poppler-0.10.4-orig/glib/demo/render.c
poppler-0.10.4/glib/demo/render.c
--- poppler-0.10.4-orig/glib/demo/render.c 2008-10-09 23:30:34.000000000
+0300
+++ poppler-0.10.4/glib/demo/render.c 2009-02-23 20:18:30.000000000 +0200
@@ -172,7 +172,7 @@
cr = cairo_create (demo->surface);
cairo_save (cr);
- cairo_set_source_rgb (cr, 1, 1, 1);
+ cairo_set_source_rgb (cr, .5, .5, .5);
cairo_rectangle (cr, 0, 0, width, height);
cairo_fill (cr);
cairo_restore (cr);
@@ -209,7 +209,7 @@
timer = g_timer_new ();
demo->pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
FALSE, 8, width, height);
- gdk_pixbuf_fill (demo->pixbuf, 0xffffff);
+ gdk_pixbuf_fill (demo->pixbuf, 0x808080);
poppler_page_render_to_pixbuf (page,
x, y,
width,
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list