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

Method offScreenX

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

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

(int sx)

Source from the content-addressed store, hash-verified

726
727 /**Converts a screen x-coordinate to an offscreen x-coordinate (nearest pixel center).*/
728 public int offScreenX(int sx) {
729 return srcRect.x + (int)(sx/magnification);
730 }
731
732 /**Converts a screen y-coordinate to an offscreen y-coordinate (nearest pixel center).*/
733 public int offScreenY(int sy) {

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