

def draw(self, viewer):
    'General draw method for RGB image types.\n        Note that actual insertion of the image into the output is\n        handled in `draw_image()`\n        '
    cache = self.get_cache(viewer)
    if (not cache.drawn):
        cache.drawn = True
        viewer.redraw(whence=2)
    cpoints = self.get_cpoints(viewer)
    cr = viewer.renderer.setup_cr(self)
    if (self.linewidth > 0):
        cr.draw_polygon(cpoints)
    if self.showcap:
        self.draw_caps(cr, self.cap, cpoints)

dataset/ETHPy150Open ejeschke/ginga/ginga/canvas/types/image.py Image.draw/original