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

Method setRoiColor

ij/src/main/java/ij/gui/Toolbar.java:1031–1039  ·  view source on GitHub ↗
(Color c)

Source from the content-addressed store, hash-verified

1029 }
1030
1031 private static void setRoiColor(Color c) {
1032 ImagePlus imp = WindowManager.getCurrentImage();
1033 if (imp==null) return;
1034 Roi roi = imp.getRoi();
1035 if (roi!=null && (roi.isDrawingTool())) {
1036 roi.setStrokeColor(c);
1037 imp.draw();
1038 }
1039 }
1040
1041 /** Returns the size of the selection brush tool, or 0 if the brush tool is not enabled. */
1042 public static int getBrushSize() {

Callers 1

setForegroundColorMethod · 0.95

Calls 5

getCurrentImageMethod · 0.95
getRoiMethod · 0.95
isDrawingToolMethod · 0.95
setStrokeColorMethod · 0.95
drawMethod · 0.95

Tested by

no test coverage detected