199
199
self.outputFormat = outputFormat
200
200
if outputFormat == 'png':
201
201
self.surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, self.width, self.height)
203
203
self.surfaceData = StringIO.StringIO()
204
204
self.surface = cairo.SVGSurface(self.surfaceData, self.width, self.height)
205
212
self.ctx = cairo.Context(self.surface)
207
214
def setColor(self, value, alpha=1.0, forceAlpha=False):