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

Method getProcessor

ij/src/main/java/ij/macro/Functions.java:1038–1051  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1036 }
1037
1038 ImageProcessor getProcessor() {
1039 if (defaultIP==null) {
1040 defaultIP = getImage().getProcessor();
1041 if (globalLineWidth>0)
1042 defaultIP.setLineWidth(globalLineWidth);
1043 if (globalColor!=null)
1044 defaultIP.setColor(globalColor);
1045 else if (!Double.isNaN(globalValue))
1046 defaultIP.setValue(globalValue);
1047 else
1048 defaultIP.setColor(Toolbar.getForegroundColor());
1049 }
1050 return defaultIP;
1051 }
1052
1053 int getType() {
1054 imageType = getImage().getType();

Callers 15

setLineWidthMethod · 0.95
setForegroundColorMethod · 0.95
setColorMethod · 0.95
setPixelMethod · 0.95
getPixelMethod · 0.95
moveToMethod · 0.95
lineToMethod · 0.95
drawLineMethod · 0.95
doIPMethodMethod · 0.95
drawStringMethod · 0.95
changeValuesMethod · 0.95
getInfoMethod · 0.95

Calls 5

getImageMethod · 0.95
getForegroundColorMethod · 0.95
setLineWidthMethod · 0.65
setColorMethod · 0.65
setValueMethod · 0.45

Tested by

no test coverage detected