Converts image canvas screen x coordinates to floating-point offscreen image pixel coordinates, depending on whether this roi uses the line or area convention for coordinates.
(int sx)
| 2474 | * coordinates, depending on whether this roi uses the line or area convention |
| 2475 | * for coordinates. */ |
| 2476 | protected double offScreenXD(int sx) { |
| 2477 | if (ic == null) return sx; |
| 2478 | double offScreenValue = ic.offScreenXD(sx); |
| 2479 | if (useLineSubpixelConvention()) |
| 2480 | offScreenValue -= 0.5; |
| 2481 | return offScreenValue; |
| 2482 | } |
| 2483 | |
| 2484 | /** Converts image canvas screen y coordinates to floating-point offscreen image pixel |
| 2485 | * coordinates, depending on whether this roi uses the line or area convention |
no test coverage detected