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

Method setType

ij/src/main/java/ij/ImagePlus.java:1518–1530  ·  view source on GitHub ↗
(int type)

Source from the content-addressed store, hash-verified

1516 }
1517
1518 @AstroImageJ(reason = "Access widen for photometric debayer", modified = true)
1519 public void setType(int type) {
1520 if ((type<0) || (type>COLOR_RGB))
1521 return;
1522 int previousType = imageType;
1523 imageType = type;
1524 if (imageType!=previousType) {
1525 if (win!=null)
1526 Menus.updateMenus();
1527 getLocalCalibration().setImage(this);
1528 }
1529 typeSet = true;
1530 }
1531
1532 public void setTypeToColor256() {
1533 if (imageType==ImagePlus.GRAY8) {

Callers 5

setImageMethod · 0.95
setProcessor2Method · 0.95
createImagePlusMethod · 0.95
processImageMethod · 0.95
makeStackDisplayableMethod · 0.95

Calls 3

updateMenusMethod · 0.95
getLocalCalibrationMethod · 0.95
setImageMethod · 0.45

Tested by

no test coverage detected