MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / fill

Method fill

ij/src/main/java/ij/plugin/filter/Filler.java:102–115  ·  view source on GitHub ↗

@deprecated replaced by ImageProcessor.fill(Roi)

(ImageProcessor ip)

Source from the content-addressed store, hash-verified

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

Callers 15

runMethod · 0.95
setPixelsMethod · 0.45
drawColorsMethod · 0.45
drawColorMethod · 0.45
refreshBackgroundMethod · 0.45
refreshForegroundMethod · 0.45
drawSpectrumMethod · 0.45
resetBWMethod · 0.45
drawColorBarMethod · 0.45
analyzeAndMarkMaximaMethod · 0.45
deleteParticleMethod · 0.45
clearMethod · 0.45

Calls 10

isMacroMethod · 0.95
isLineSelectionMethod · 0.95
isStraightLineMethod · 0.95
convertLineToAreaMethod · 0.95
getMaskMethod · 0.95
fillValueSetMethod · 0.80
getStrokeWidthMethod · 0.80
setRoiMethod · 0.45
drawPixelsMethod · 0.45

Tested by

no test coverage detected