ImagSurface is an object to handling an off-screen surface for plotting graphs and blitting images.
ImagSurface
The methods are the same as for Window, apart from the constructor itself.
Window
gfx.ImageSurface(int width, int height)