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

Method setImage

ij/src/main/java/ij/gui/ImageWindow.java:530–540  ·  view source on GitHub ↗
(ImagePlus imp2)

Source from the content-addressed store, hash-verified

528 }
529
530 public void setImage(ImagePlus imp2) {
531 ImageCanvas ic = getCanvas();
532 if (ic==null || imp2==null)
533 return;
534 imp = imp2;
535 imp.setWindow(this);
536 ic.updateImage(imp);
537 ic.setImageUpdated();
538 ic.repaint();
539 repaint();
540 }
541
542 public void updateImage(ImagePlus imp) {
543 if (imp!=this.imp)

Callers

nothing calls this directly

Calls 5

getCanvasMethod · 0.95
updateImageMethod · 0.95
setImageUpdatedMethod · 0.95
setWindowMethod · 0.45
repaintMethod · 0.45

Tested by

no test coverage detected