(ImageProcessor ip)
| 82 | } |
| 83 | |
| 84 | public void clear(ImageProcessor ip) { |
| 85 | ip.setGlobalBackgroundColor(); |
| 86 | if (isLineSelection()) { |
| 87 | if (isStraightLine() && roi.getStrokeWidth()>1) |
| 88 | ip.fillPolygon(roi.getPolygon()); |
| 89 | else |
| 90 | roi.drawPixels(); |
| 91 | } else if (roi!=null && roi instanceof TextRoi) |
| 92 | ((TextRoi)roi).clear(ip); |
| 93 | else |
| 94 | ip.fill(); // fill with background color |
| 95 | ip.setGlobalForegroundColor(); |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * @deprecated |
no test coverage detected