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

Method setBackgroundValue

ij/src/main/java/ij/gui/Toolbar.java:1022–1029  ·  view source on GitHub ↗

Sets the background color to grayscale, where value is between 0 (black) and 255 (white).

(double value)

Source from the content-addressed store, hash-verified

1020 /** Sets the background color to grayscale, where value
1021 is between 0 (black) and 255 (white). */
1022 public static void setBackgroundValue(double value) {
1023 if (value>=0) {
1024 int v = (int)value;
1025 if (v>255) v=255;
1026 setBackgroundColor(new Color(v,v,v));
1027 }
1028 backgroundValue = value;
1029 }
1030
1031 private static void setRoiColor(Color c) {
1032 ImagePlus imp = WindowManager.getCurrentImage();

Callers 1

doColorMethod · 0.95

Calls 1

setBackgroundColorMethod · 0.95

Tested by

no test coverage detected