Package: cairo

Function cairo:script-surface-create

Lambda List

cairo:script-surface-create (script content width height)

Arguments

script -- a cairo:device-t instance
content -- a cairo:content-t value
width -- a number coerced to a double float for the width in pixels
height -- a number coerced to a double float for the height in pixels

Return Value

The newly created cairo:surface-t instance.

Details

Creates a new surface that will emit its rendering through script. The caller owns the surface and should call the cairo:surface-destroy function when done with it. This function always returns a valid pointer, but it will return a pointer to a "nil" surface if an error such as out of memory occurs. You can use the cairo:surface-status function to check for this.
 

See also

2025-1-29