Package: cairo

Function cairo:image-surface-data

Lambda List

cairo:image-surface-data (surface)

Arguments

surface -- a cairo:surface-t instance

Return Value

The pointer to the image data of this surface or nil if surface is not an image surface, or if the cairo:surface-finish function has been called.

Details

Get the pointer to the data of the image surface, for direct inspection or modification. A call to the cairo:surface-flush function is required before accessing the pixel data to ensure that all pending drawing operations are finished. A call to the cairo:surface-mark-dirty function is required after the data is modified.
 

See also

2025-1-29