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

Method draw

imagepy/core/roi/polygonroi.py:133–140  ·  view source on GitHub ↗
(self, dc, f, **key)

Source from the content-addressed store, hash-verified

131 '''
132
133 def draw(self, dc, f, **key):
134 dc.SetPen(wx.Pen(RoiManager.get_color(), width=RoiManager.get_lw(), style=wx.SOLID))
135 for pg in self.body:
136 dc.DrawLines([f(*i) for i in pg[0]])
137 if self.issimple():
138 for i in pg[0]: dc.DrawCircle(f(*i),2)
139 for hole in pg[1]:
140 dc.DrawLines([f(*i) for i in hole])
141
142 def sketch(self, img, w=1, color=None):
143 pen = paint.Paint()

Callers

nothing calls this directly

Calls 4

issimpleMethod · 0.95
get_lwMethod · 0.80
fFunction · 0.50
get_colorMethod · 0.45

Tested by

no test coverage detected