@deprecated replaced by ImageProcessor.fill(Roi)
(ImageProcessor ip)
| 100 | * replaced by ImageProcessor.fill(Roi) |
| 101 | */ |
| 102 | public void fill(ImageProcessor ip) { |
| 103 | if (!IJ.isMacro() || !ip.fillValueSet()) |
| 104 | ip.setGlobalForegroundColor(); |
| 105 | if (isLineSelection()) { |
| 106 | if (isStraightLine() && roi.getStrokeWidth()>1 && !(roi instanceof Arrow)) { |
| 107 | Roi roi2=Roi.convertLineToArea(roi); |
| 108 | ip.setRoi(roi2); |
| 109 | ip.fill(roi2.getMask()); |
| 110 | ip.setRoi(roi); |
| 111 | } else |
| 112 | roi.drawPixels(ip); |
| 113 | } else |
| 114 | ip.fill(); // fill with foreground color |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * @deprecated |
no test coverage detected