Re: Setting a background "layer"

Lawrence D'Oliveiro <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Geek Central
Message-ID <[email protected]>
On Tue, 17 Jan 2017 02:47:30 +0000, mike e wrote:

> Is there a way to draw a layer, and then save that layer indefinitely
> (or have a layer dedicated to the text)?

Draw the background to an image surface, then you can then turn into a
pattern to blit it into the destination context, after which you draw
the foreground on top.

You could also try a recording surface. This records drawing calls, not
pixels, so it can work better if you need to scale the background.
-- 
cairo mailing list
[email protected]
https://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.