def stop_rasterizing(self):
self._rasterizing -= <NUM_LIT:1><EOL>if self._rasterizing == <NUM_LIT:0>:<EOL><INDENT>self._set_current_renderer(self._vector_renderer)<EOL>width, height = self._width * self.dpi, self._height * self.dpi<EOL>buffer, bounds = self._raster_renderer.tostring_rgba_minimized()<EOL>l, b, w, h = bounds<EOL>if w > <NUM_LIT:0> and h > <NUM_LIT:0>:<EOL><INDENT>image = frombuffer(buffer, w, h, True)<EOL>image.is_grayscale = False<EOL>image.flipud_out()<EOL>self._renderer.draw_image(l, height - b - h, image, None)<EOL><DEDENT>self._raster_renderer = None<EOL>self._rasterizing = False<EOL><DEDENT>
Exit "raster" mode.  All of the drawing that was done since
the last start_rasterizing command will be copied to the
vector backend by calling draw_image.

If stop_rasterizing is called multiple times before
start_rasterizing is called, this method has no effect.