mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 06:48:03 +02:00
Merge branch '1.8'
This commit is contained in:
commit
38a1061bbc
1 changed files with 15 additions and 2 deletions
|
|
@ -692,6 +692,10 @@ read_png (struct png_read_closure_t *png_closure)
|
|||
* %CAIRO_STATUS_NO_MEMORY
|
||||
* %CAIRO_STATUS_FILE_NOT_FOUND
|
||||
* %CAIRO_STATUS_READ_ERROR
|
||||
*
|
||||
* Alternatively, you can allow errors to propagate through the drawing
|
||||
* operations and check the status on the context upon completion
|
||||
* using cairo_status().
|
||||
**/
|
||||
cairo_surface_t *
|
||||
cairo_image_surface_create_from_png (const char *filename)
|
||||
|
|
@ -734,8 +738,17 @@ cairo_image_surface_create_from_png (const char *filename)
|
|||
* via the @read_func function.
|
||||
*
|
||||
* Return value: a new #cairo_surface_t initialized with the contents
|
||||
* of the PNG file or %NULL if the data read is not a valid PNG image or
|
||||
* memory could not be allocated for the operation.
|
||||
* of the PNG file or a "nil" surface if the data read is not a valid PNG image
|
||||
* or memory could not be allocated for the operation. A nil
|
||||
* surface can be checked for with cairo_surface_status(surface) which
|
||||
* may return one of the following values:
|
||||
*
|
||||
* %CAIRO_STATUS_NO_MEMORY
|
||||
* %CAIRO_STATUS_READ_ERROR
|
||||
*
|
||||
* Alternatively, you can allow errors to propagate through the drawing
|
||||
* operations and check the status on the context upon completion
|
||||
* using cairo_status().
|
||||
**/
|
||||
cairo_surface_t *
|
||||
cairo_image_surface_create_from_png_stream (cairo_read_func_t read_func,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue