Package: cairo

Function cairo:recording-surface-ink-extents

Lambda List

cairo:recording-surface-ink-extents (surface)

Arguments

surface -- a cairo:surface-t instance

Return Value

x -- a double float with the x coordinate of the top-left of the ink bounding box
y -- a double float with the y coordinate of the top-left of the ink bounding box
width -- a double float with the width of the the ink bounding box
height -- a double float with the height of the the ink bounding box

Details

Measures the extents of the operations stored within the recording surface. This is useful to compute the required size of an image surface, or equivalent, into which to replay the full sequence of drawing operations.
 

See also

2025-1-29