def __init__(self, width, height):
self.width = width<EOL>self.height = height<EOL>self.surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)<EOL>self.context = cairo.Context(self.surface)<EOL>self.context.scale(width, height)<EOL>self.context.set_antialias(cairo.ANTIALIAS_NONE)<EOL>
Constructor. Create a Cairo image surface and a render context, and disables
anti-aliasing for the image to keep the lines sharp.