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

Method updateImage

ij/src/main/java/ij/gui/ImageCanvas.java:148–157  ·  view source on GitHub ↗
(ImagePlus imp)

Source from the content-addressed store, hash-verified

146 }
147
148 void updateImage(ImagePlus imp) {
149 this.imp = imp;
150 int width = imp.getWidth();
151 int height = imp.getHeight();
152 imageWidth = width;
153 imageHeight = height;
154 srcRect = new Rectangle(0, 0, imageWidth, imageHeight);
155 setSize(imageWidth, imageHeight);
156 magnification = 1.0;
157 }
158
159 /** Update this ImageCanvas to have the same zoom and scale settings as the one specified. */
160 void update(ImageCanvas ic) {

Callers 3

setImageMethod · 0.95
paintMethod · 0.45
paintDoubleBufferedMethod · 0.45

Calls 3

setSizeMethod · 0.95
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected