(ImagePlus imp)
| 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) { |