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

Method offScreenYD

ij/src/main/java/ij/gui/ImageCanvas.java:753–756  ·  view source on GitHub ↗

Converts a screen y-coordinate to a floating-point offscreen y-coordinate.

(int sy)

Source from the content-addressed store, hash-verified

751
752 /**Converts a screen y-coordinate to a floating-point offscreen y-coordinate.*/
753 public double offScreenYD(int sy) {
754 return srcRect.y + sy/magnification;
755
756 }
757
758 /**Converts an offscreen x-coordinate to a screen x-coordinate.*/
759 public int screenX(int ox) {

Callers 4

drawSyncCursorMethod · 0.95
mousePressedMethod · 0.95
mouseDraggedMethod · 0.95
makeXorYArrayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected