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

Method offScreenY

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

Converts a screen y-coordinate to an offscreen y-coordinate (nearest pixel center).

(int sy)

Source from the content-addressed store, hash-verified

731
732 /**Converts a screen y-coordinate to an offscreen y-coordinate (nearest pixel center).*/
733 public int offScreenY(int sy) {
734 return srcRect.y + (int)(sy/magnification);
735 }
736
737 /**Converts a screen x-coordinate to an offscreen x-coordinate (Roi coordinate of nearest pixel border).*/
738 public int offScreenX2(int sx) {

Callers 15

mouseMovedMethod · 0.95
mousePressedMethod · 0.95
mouseDraggedMethod · 0.95
mouseReleasedMethod · 0.95
drawOutlineMethod · 0.95
mousePressedMethod · 0.95
mouseDraggedMethod · 0.95
zoomInMethod · 0.95
zoomOutMethod · 0.95
mousePressedMethod · 0.95
handlePopupMenuMethod · 0.95
mouseDraggedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected