Sets the background color to grayscale, where value is between 0 (black) and 255 (white).
(double value)
| 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(); |
no test coverage detected