[cairo] Changing graphic state data in a recording surface

Edward Zimmermann Edward.Zimmermann at cib.de
Wed Feb 20 03:02:23 PST 2013

Is there any means with which one can change the graphic states of a recording surface playback?
While one can playback a surface onto a context with a transformation matrix to effect its scale etc., I'd like to be able to change the default color, line width,...
If I draw a line, for example, in a recording surface and "play it back" into another surface. It uses the line width that was specified in the drawing of the recording surface--- which if not specified is 2. If I set the line width to, say, 10 in a drawing context and playback the surface the line width gets set to what the recording surface had.. default 2. I'd like to be able to set these by context.

(or does this, in the end, seem to demand a kind of callback into the back-end?)



Edward C. Zimmermann

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130220/90dfc358/attachment.html>

More information about the cairo mailing list