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

Method offScreenXD

ij/src/main/java/ij/gui/Roi.java:2476–2482  ·  view source on GitHub ↗

Converts image canvas screen x coordinates to floating-point offscreen image pixel coordinates, depending on whether this roi uses the line or area convention for coordinates.

(int sx)

Source from the content-addressed store, hash-verified

2474 * coordinates, depending on whether this roi uses the line or area convention
2475 * for coordinates. */
2476 protected double offScreenXD(int sx) {
2477 if (ic == null) return sx;
2478 double offScreenValue = ic.offScreenXD(sx);
2479 if (useLineSubpixelConvention())
2480 offScreenValue -= 0.5;
2481 return offScreenValue;
2482 }
2483
2484 /** Converts image canvas screen y coordinates to floating-point offscreen image pixel
2485 * coordinates, depending on whether this roi uses the line or area convention

Callers 15

handleRoiMouseDownMethod · 0.95
handleMouseDownMethod · 0.95
RotatedRectRoiMethod · 0.45
growMethod · 0.45
moveHandleMethod · 0.45
growFloatMethod · 0.45
EllipseRoiMethod · 0.45
growMethod · 0.45
moveHandleMethod · 0.45
PolygonRoiMethod · 0.45
drawRubberBandMethod · 0.45
moveHandleMethod · 0.45

Calls 1

Tested by

no test coverage detected