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

Method makeLine

ij/src/main/java/ij/IJ.java:1415–1417  ·  view source on GitHub ↗

Creates a straight line selection.

(int x1, int y1, int x2, int y2)

Source from the content-addressed store, hash-verified

1413
1414 /** Creates a straight line selection. */
1415 public static void makeLine(int x1, int y1, int x2, int y2) {
1416 getImage().setRoi(new Line(x1, y1, x2, y2));
1417 }
1418
1419 /** Creates a straight line selection using floating point coordinates. */
1420 public static void makeLine(double x1, double y1, double x2, double y2) {

Callers 1

makeLineMethod · 0.95

Calls 2

getImageMethod · 0.95
setRoiMethod · 0.45

Tested by

no test coverage detected