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

Method getType

ij/src/main/java/ij/io/FileInfo.java:246–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244 }
245
246 private String getType() {
247 switch (fileType) {
248 case GRAY8: return "byte";
249 case GRAY16_SIGNED: return "short";
250 case GRAY10_UNSIGNED: case GRAY12_UNSIGNED: GRAY16_UNSIGNED: return "ushort";
251 case GRAY32_INT: return "int";
252 case GRAY32_UNSIGNED: return "uint";
253 case GRAY32_FLOAT: return "float";
254 case COLOR8: return "byte(lut)";
255 case RGB: return "RGB";
256 case RGB_PLANAR: return "RGB(p)";
257 case RGB48: return "RGB48";
258 case BITMAP: return "bitmap";
259 case ARGB: return "ARGB";
260 case ABGR: return "ABGR";
261 case BGR: return "BGR";
262 case BARG: return "BARG";
263 case CMYK: return "CMYK";
264 case GRAY64_FLOAT: return "double";
265 case RGB48_PLANAR: return "RGB48(p)";
266 default: return "";
267 }
268 }
269
270 public synchronized Object clone() {
271 try {return super.clone();}

Callers 1

toStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected