Re: Cairo backend: close, very, very close

Tony Graham <[email protected]> Wed, 08 Mar 2006 15:41:26 +0000
Newsgroups gmane.text.xml.xmlroff.general
Message-ID <[email protected]>
Stefan Seefeld <[email protected]> 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.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642