Package: cairo

Function cairo-image-surface-data

Lambda List

cairo-image-surface-data (surface)

Arguments

surface -- a cairo-surface-t instance

Return Value

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

Details

Get a pointer to the data of the image surface, for direct inspection or modification.

A call to the function cairo-surface-flush is required before accessing the pixel data to ensure that all pending drawing operations are finished. A call to the function cairo-surface-mark-dirty is required after the data is modified.
 

See also

2020-12-21