[cairo] When Should You Call cairo_surface_flush?
ldo at geek-central.gen.nz
Wed Mar 18 02:46:38 PDT 2015
need to be called before making non-Cairo accesses to an image surface?
The docs say “This function must be called before switching from
drawing on the surface with cairo to drawing on it directly with native
APIs” -- of course “drawing ... with native APIs” has to mean “any kind
of memory access”, so my guess is “yes”.
Currently in my Qahirah examples
<https://github.com/ldo/qahirah_examples>, I am doing a flush before
writing the images to PNG files. I would have thought Cairo would do
this automatically, but I can find no sign of that in the source code
Thanks for any clarification.
More information about the cairo