imageSurfaceGetData

fnubyte * imageSurfaceGetData(cairo.surface.Surface surface)

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

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

Parameters

surfacea #cairo_image_surface_t

Returns

a pointer to the image data of this surface or null

if surface is not an image surface, or if cairo.surface.Surface.finish has been called.