code: def rasterize(self,
                    pitch,
                    origin,
                    resolution=None,
                    fill=True,
                    width=None,
                    **kwargs):
          
          image = raster.rasterize(self,
                                   pitch=pitch,
                                   origin=origin,
                                   resolution=resolution,
                                   fill=fill,
                                   width=width)
          return image
docs: Rasterize a Path2D object into a boolean image ("mode 1").
  
          Parameters
          ------------
          pitch:      float, length in model space of a pixel edge
          origin:     (2,) float, origin position in model space
          resolution: (2,) int, resolution in pixel space
          fill:       bool, if True will return closed regions as filled
          width:      int, if not None will draw outline this wide (pixels)
  
          Returns
          ------------
          raster: PIL.Image object, mode 1