imageSurfaceGetData

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.

ubyte*
imageSurfaceGetData

Parameters

surface cairo.surface.Surface

a #cairo_image_surface_t

Return Value

Type: ubyte*

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.