Re: Conditions under which CAIRO_STATUS_WRITE_ERROR occurs?

Uli Schlachter <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi,

On 20.10.2017 16:20, Andy Meneely wrote:
> What other conditions might you get a CAIRO_STATUS_WRITE_ERROR on a
> cairo_write_to_png
> call?

looking through src/cairo-png.c, I find:

- Trying to write a surface with width or height 0
- When opening the output file fails (fopen())
- When fwrite() to the output file fails, i.e. ferror() returns non-zero
- When closing the output file fails (fclose())

Cheers,
Uli
-- 
Happiness can't be found -- it finds you.
 - Majic
-- 
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.