cairoImageSurfaceCreateFromPngStream: cairoImageSurfaceCreateFromPngStream

Description Usage Value Author(s)

Description

Creates a new image surface from PNG data read incrementally via the read.func function.

Usage

1

Value

[CairoSurface] a new CairoSurface initialized with the contents 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 cairoStatus.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.