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

Method getFill

ij/src/main/java/ij/gui/NewImage.java:124–131  ·  view source on GitHub ↗
(int options)

Source from the content-addressed store, hash-verified

122 }
123
124 static int getFill(int options) {
125 int fill = options&7;
126 if (fill==OLD_FILL_WHITE)
127 fill = FILL_WHITE;
128 if (fill==7||fill==6||fill==5)
129 fill = FILL_BLACK;
130 return fill;
131 }
132
133 public static ImagePlus createByteImage(String title, int width, int height, int slices, int options) {
134 int fill = getFill(options);

Callers 6

createStackMethod · 0.95
createByteImageMethod · 0.95
createRGBImageMethod · 0.95
createIntImageMethod · 0.95
createShortImageMethod · 0.95
createFloatImageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected