ImageSurface.image

ImagePtr image()

Gets the resulting RGB image from the surface.

Returns a newly allocated image containing the graphics drawn to this surface. The caller is responsible for managing the returned image's memory.

Returns

ImagePtr handle to the RGB image, or null on failure