recordingSurfaceInkExtents

fnvoid recordingSurfaceInkExtents(cairo.surface.Surface surface, out double x0, out double y0, out double width, out double height)

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.

Parameters

surfacea #cairo_recording_surface_t
x0the x-coordinate of the top-left of the ink bounding box
y0the y-coordinate of the top-left of the ink bounding box
widththe width of the ink bounding box
heightthe height of the ink bounding box