<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14pt"><div>Hopefully I did not miss this in the FAQ, if so please forgive the Cairo newbie.</div><div><br></div><div>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.</div><div><br></div><div>The steps are (as I see it):</div><div><br></div><div>for patterns-<br></div><div>1) put my data in the proper Cairo ARGB32 order</div><div>2) create a surface from my data</div><div>3) create a pattern from my surface</div><div><br></div><div>for hatches-</div><div>1) create a surface to draw on</div><div>2) create a cairo_t to draw hatch lines with</div><div>3) create a pattern from my surface</div><div><br></div><div>..then fill some shape with my pattern.</div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>Mark</div><div><br></div><div><br></div><div><br></div></div></body></html>