Package: cairo
Function cairo-image-surface-create-from-png
Lambda Listcairo-image-surface-create-from-png (filename) ArgumentsReturn Value A new cairo-surface-t instance initialized with the contents of
the PNG file, or a "nil" surface if any error occurred. Details
Creates a new image surface and initializes the contents to the given PNG
file. A "nil" surface can be checked for with the function cairo-surface-status which may return one of the following values: :no-memory, :file-not-found, or :read-error. Alternatively, you can allow errors to propagate through the drawing operations and check the status on the context upon completion using the function cairo-status. | See also |
2020-12-21