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

Method offScreenXD

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

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

(int sx)

Source from the content-addressed store, hash-verified

746
747 /**Converts a screen x-coordinate to a floating-point offscreen x-coordinate.*/
748 public double offScreenXD(int sx) {
749 return srcRect.x + sx/magnification;
750 }
751
752 /**Converts a screen y-coordinate to a floating-point offscreen y-coordinate.*/
753 public double offScreenYD(int sy) {

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected