ImageSurface.getData

Get a pointer to the data of the image surface, for direct inspection or modification. A call to Surface.flush is required before accessing the pixel data to ensure that all pending drawing operations are finished. A call to Surface.markDirty is required after the data is modified. Since 1.2

class ImageSurface
ubyte*
getData
()

Return Value

Type: ubyte*

a pointer to the image data of this surface or NULL if surface is not an image surface, or if Surface.finish has been called.