Converts image canvas screen x coordinates to integer offscreen image pixel coordinates, depending on whether this roi uses the line or area convention for coordinates.
(int sx)
| 2458 | * coordinates, depending on whether this roi uses the line or area convention |
| 2459 | * for coordinates. */ |
| 2460 | protected int offScreenX(int sx) { |
| 2461 | if (ic == null) return sx; |
| 2462 | return useLineSubpixelConvention() ? ic.offScreenX(sx) : ic.offScreenX2(sx); |
| 2463 | } |
| 2464 | |
| 2465 | /** Converts image canvas screen y coordinates to integer offscreen image pixel |
| 2466 | * coordinates, depending on whether this roi uses the line or area convention |
no test coverage detected