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

Method addImage

ij/src/main/java/ij/gui/GenericDialog.java:1150–1158  ·  view source on GitHub ↗

Adds an image to the dialog.

(ImagePlus image)

Source from the content-addressed store, hash-verified

1148
1149 /** Adds an image to the dialog. */
1150 public void addImage(ImagePlus image) {
1151 if (image==null)
1152 return;
1153 ImagePanel imagePanel = new ImagePanel(image);
1154 addPanel(imagePanel);
1155 if (imagePanels==null)
1156 imagePanels = new Vector();
1157 imagePanels.add(imagePanel);
1158 }
1159
1160 /** Set the insets (margins), in pixels, that will be
1161 used for the next component added to the dialog

Callers 1

doDialogMethod · 0.45

Calls 2

addPanelMethod · 0.95
addMethod · 0.65

Tested by

no test coverage detected