equal
deleted
inserted
replaced
166 |
166 |
167 # Draw the bounding boxes using viewer scale factor |
167 # Draw the bounding boxes using viewer scale factor |
168 for bbox in bboxes: |
168 for bbox in bboxes: |
169 if bbox is not None: |
169 if bbox is not None: |
170 dc.DrawRectangle( |
170 dc.DrawRectangle( |
171 bbox.x * scalex, bbox.y * scaley, |
171 round(bbox.x * scalex), round(bbox.y * scaley), |
172 bbox.width * scalex, bbox.height * scaley) |
172 round(bbox.width * scalex), round(bbox.height * scaley)) |
173 |
173 |
174 dc.SetLogicalFunction(wx.COPY) |
174 dc.SetLogicalFunction(wx.COPY) |
175 |
175 |
176 # Restore Viewer scale factor |
176 # Restore Viewer scale factor |
177 dc.SetUserScale(scalex, scaley) |
177 dc.SetUserScale(scalex, scaley) |