Re: RecordingSurface based patterns rasterized when painted to vector surface?

Chris Wilson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <1336653069_225754@CP5-2952>
On Thu, 10 May 2012 14:12:25 +0200, Julian Viereck <[email protected]> wrote:
> I'm working on a new feature for Firefox. I've got a PDFSurface and create a similar surface. This gives me back a RecordingSurface. I perform some drawing operations agains the recording surface. Then, a pattern is created based on the recording surface (using |mPattern = cairo_pattern_create_for_surface(RecordingSurface)|) and the pattern is drawn to the PDFSurface (using |cairo_set_source(PDFSurfaceCairo, mPattern); cairo_paint_with_alpha(PDFSurfaceCairo, alpha);|) . The output of the recording surface appears to be rasterized in the final PDF. 
> 
> Currently, I'm not 100% sure if this is the problem, but does Cairo rasterize a recording surface when used as pattern and this gets drawn to a PDFSurface?

Only if the recording surface contains an operation that cannot be
performed natively within the PDF, or if the extend mode of the pattern
is not supported by PDF (e.g. EXTEND_PAD).
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
--
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.