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

Method getColor

ij/src/main/java/ij/Prefs.java:877–882  ·  view source on GitHub ↗

Finds a color in IJ_Props or IJ_Prefs.txt.

(String key, Color defaultColor)

Source from the content-addressed store, hash-verified

875
876 /** Finds a color in IJ_Props or IJ_Prefs.txt. */
877 public static Color getColor(String key, Color defaultColor) {
878 int i = getInt(key, 0xaaa);
879 if (i == 0xaaa)
880 return defaultColor;
881 return new Color((i >> 16) & 0xFF, (i >> 8) & 0xFF, i & 0xFF);
882 }
883
884 public static boolean commandLineMacro() {
885 return commandLineMacro;

Callers 3

ImageCanvasClass · 0.95
ToolbarClass · 0.95
RoiClass · 0.95

Calls 1

getIntMethod · 0.95

Tested by

no test coverage detected