def __doc_example1__(images): from gamera.toolkits.vector.plugins import transformation, render from gamera.core import Image, RGBPixel onebit = images[ONEBIT] paths = onebit.potrace() t = transformation.scale(3, 3) new_image = Image(0, 0, onebit.nrows*3, onebit.ncols*3, RGB) new_paths = paths.transform(t) for path in new_paths: new_image.draw_path_hollow( path, RGBPixel(255, 128, 128)) return [onebit, new_image]