cairo.types.Format imageSurfaceGetFormat(cairo.surface.Surface surface)
Get the format of the surface.
surface