MCPcopy Create free account
hub / github.com/Image-Py/imagepy / draw

Method draw

imagepy/core/roi/lineroi.py:64–69  ·  view source on GitHub ↗
(self, dc, f, **key)

Source from the content-addressed store, hash-verified

62 IPy.set_info('Line : points:%.0f x:%.1f y:%.1f'%(len(cur[0]), x*k, y*k))
63
64 def draw(self, dc, f, **key):
65 dc.SetPen(wx.Pen(RoiManager.get_color(), width=RoiManager.get_lw(), style=wx.SOLID))
66 for line in self.body:
67 if len(line)>1:
68 dc.DrawLines([f(*i) for i in line])
69 for i in line:dc.DrawCircle(f(*i),2)
70
71 def sketch(self, img, w=1, color=None):
72 pen = paint.Paint()

Callers

nothing calls this directly

Calls 3

get_lwMethod · 0.80
fFunction · 0.50
get_colorMethod · 0.45

Tested by

no test coverage detected