From: Tony G. <Ton...@Su...> - 2006-03-08 15:41:35
|
Stefan Seefeld <se...@sy...> writes: > Tony Graham wrote: ... >> The Cairo backend doesn't (yet) replace anything. It's currently an >> alternative to the GNOME Print default. > > I see. So it would provide support for features not currently supported > in GNOME Print (such as transparent / translucent graphics) ? It has more support for transparency than I know what to do with. Here's a snippet from the docs: ------------------------------------------------------------ void cairo_set_source_rgb (cairo_t *cr, double red, double green, double blue); void cairo_set_source_rgba (cairo_t *cr, double red, double green, double blue, double alpha); void cairo_set_source (cairo_t *cr, cairo_pattern_t *source); void cairo_set_source_surface (cairo_t *cr, cairo_surface_t *surface, double x, double y); cairo_pattern_t* cairo_get_source (cairo_t *cr); ------------------------------------------------------------ You can set the transparency of the colour, and, it appears, you can draw with patterns and graphics. Regards, Tony. P.S. What version of libgnomeprint are you using now? I read in the libgnomeprint ChangeLog that transparency in PDF was fixed in a recent release. |