Surface.unmapImage

void unmapImage(cairo.surface.Surface image)

Unmaps the image surface as returned from #[cairo.surface.Surface.mapToImage].

The content of the image will be uploaded to the target surface. Afterwards, the image is destroyed.

Using an image surface which wasn't returned by [cairo.surface.Surface.mapToImage] results in undefined behavior.

Parameters

imagethe currently mapped image