(self, pix)
| 233 | dc.DrawText(text, (x2-dw, h-10-dh)) |
| 234 | |
| 235 | def update(self, pix): |
| 236 | if self.ips == None: return |
| 237 | lay(self.box, self.imgbox) |
| 238 | dc = wx.BufferedDC(wx.ClientDC(self), self.buffer) |
| 239 | #dc.BeginDrawing() |
| 240 | dc.Clear() |
| 241 | self.draw_image(dc, self.ips.img, self.ips.backimg, self.ips.backmode, |
| 242 | self.imgbox, self.scales[self.scaleidx], pix) |
| 243 | |
| 244 | #dc.EndDrawing() |
| 245 | |
| 246 | #cdc = wx.ClientDC(self) |
| 247 | #cdc.BeginDrawing() |
| 248 | if self.ips.roi != None: |
| 249 | self.ips.roi.draw(dc, self.to_panel_coor, cur=self.ips.cur, k = self.get_scale()) |
| 250 | if self.ips.mark != None: |
| 251 | self.ips.mark.draw(dc, self.to_panel_coor, cur=self.ips.cur, k = self.get_scale()) |
| 252 | #cdc.EndDrawing() |
| 253 | if self.ips.unit!=(1,'pix'): |
| 254 | self.draw_ruler(dc) |
| 255 | if self.handle != None: self.handle(self.ips) |
| 256 | dc.UnMask() |
| 257 | |
| 258 | def zoomout(self, x, y): |
| 259 | if self.scaleidx == len(self.scales)-1:return |
no test coverage detected