Re: SVG & PS/EPS surfaces

Tomas By <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi all,

In C it works fine. I create a recording surface and an EPS surface as 
follows:

| rs = cairo_recording_surface_create(CAIRO_CONTENT_COLOR,NULL);
| cr = cairo_create(rs);
   (drawing commands on cr)
| fs = cairo_ps_surface_create("test.eps",100.0,100.0);
| cairo_ps_surface_set_eps(fs,1);
| crout = cairo_create(fs);
| cairo_set_source_surface(crout,rs,0,0);
| cairo_paint(crout);
| cairo_destroy(cr);
| cairo_destroy(crout);
| cairo_surface_finish(fs);

The resulting EPS file is very nicely vectorised.

It is somewhat annoying to have to use C, though.

Is there any other/simpler/better way to do this?

/Tomas

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.