Lifecycle of a Pattern

Mark Meier <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hopefully I did not miss this in the FAQ, if so please forgive the Cairo newbie.

I have a Win32 surface that I keep redrawing with the same pattern fills and hatch fills.  I want to be sure that I am keeping the proper parts of the patterns around for the proper amount of time.

The steps are (as I see it):

for patterns-

1) put my data in the proper Cairo ARGB32 order
2) create a surface from my data
3) create a pattern from my surface

for hatches-
1) create a surface to draw on
2) create a cairo_t to draw hatch lines with
3) create a pattern from my surface

..then fill some shape with my pattern.

The problem is I do not how long to keep each object around.  I do not seem to be able to delete every thing after I am done with "cairo_fill()".  At the minimum, I have to keep the data I used to "create surface from data".  Can someone point me to the documentation (or code) that helps explain the lifecycle of a pattern.

Thanks,
Mark

--
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.