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

Method offScreenYD

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

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

(int sy)

Source from the content-addressed store, hash-verified

2485 * coordinates, depending on whether this roi uses the line or area convention
2486 * for coordinates. */
2487 protected double offScreenYD(int sy) {
2488 if (ic == null) return sy;
2489 double offScreenValue = ic.offScreenYD(sy);
2490 if (useLineSubpixelConvention())
2491 offScreenValue -= 0.5;
2492 return offScreenValue;
2493 }
2494
2495 /** Returns 'true' if this ROI uses for drawing the convention for
2496 * line and point ROIs, where the coordinates are with respect

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