Package: cairo

Macro cairo:with-ps-surface

Lambda List

cairo:with-ps-surface ((surface path width height) &body body)

Syntax

(cairo:with-ps-surface (surface path width height) body) => result

Arguments

surface -- a PostScript cairo:surface-t instance
path -- a path or namestring for a filename for the PS output, nil may be used to specify no output, this will generate a PS surface that may be queried and used as a source, without generating a temporary file
width -- a number coerced to a double float for the width of the surface, in points (1 point == 1/72 inch)
height -- a number coerced to a double float for the height of the surface, in points (1 point == 1/72 inch)

Details

The cairo:with-ps-surface macro allocates a new PostScript cairo:surface-t instance for the given path, width, and height values and executes the body that uses the PostScript surface. After execution of the body the allocated memory for the PostScript surface is released.
 

See also

2025-1-29