()
| 4096 | } |
| 4097 | |
| 4098 | void floodFill() { |
| 4099 | int x = (int)getFirstArg(); |
| 4100 | int y = (int)getNextArg(); |
| 4101 | boolean fourConnected = true; |
| 4102 | if (interp.nextToken()==',') { |
| 4103 | String s = getLastString(); |
| 4104 | if (s.indexOf("8")!=-1) |
| 4105 | fourConnected = false; |
| 4106 | } else |
| 4107 | interp.getRightParen(); |
| 4108 | ImageProcessor ip = getProcessor(); |
| 4109 | FloodFiller ff = new FloodFiller(ip); |
| 4110 | if (fourConnected) |
| 4111 | ff.fill(x, y); |
| 4112 | else |
| 4113 | ff.fill8(x, y); |
| 4114 | updateAndDraw(); |
| 4115 | if (IJ.recording() && pgm.hasVars) |
| 4116 | Recorder.record("floodFill", x, y); |
| 4117 | } |
| 4118 | |
| 4119 | void restorePreviousTool() { |
| 4120 | interp.getParens(); |
no test coverage detected