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

Method offScreenX

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

Converts image canvas screen x coordinates to integer 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

2458 * coordinates, depending on whether this roi uses the line or area convention
2459 * for coordinates. */
2460 protected int offScreenX(int sx) {
2461 if (ic == null) return sx;
2462 return useLineSubpixelConvention() ? ic.offScreenX(sx) : ic.offScreenX2(sx);
2463 }
2464
2465 /** Converts image canvas screen y coordinates to integer offscreen image pixel
2466 * coordinates, depending on whether this roi uses the line or area convention

Callers 14

handleMouseDownMethod · 0.95
mousePressedMethod · 0.45
rotateRoiMethod · 0.45
moveRoiMethod · 0.45
growMethod · 0.45
handleMouseUpMethod · 0.45
PolygonRoiMethod · 0.45
mouseMovedMethod · 0.45
drawRubberBandMethod · 0.45
moveHandleMethod · 0.45
mouseDownInHandleMethod · 0.45
moveHandleMethod · 0.45

Calls 2

offScreenX2Method · 0.45

Tested by

no test coverage detected