Converts image canvas screen y coordinates to floating-point offscreen image pixel coordinates, depending on whether this roi uses the line or area convention for coordinates.
(int sy)
| 2485 | * coordinates, depending on whether this roi uses the line or area convention |
| 2486 | * for coordinates. */ |
| 2487 | protected double offScreenYD(int sy) { |
| 2488 | if (ic == null) return sy; |
| 2489 | double offScreenValue = ic.offScreenYD(sy); |
| 2490 | if (useLineSubpixelConvention()) |
| 2491 | offScreenValue -= 0.5; |
| 2492 | return offScreenValue; |
| 2493 | } |
| 2494 | |
| 2495 | /** Returns 'true' if this ROI uses for drawing the convention for |
| 2496 | * line and point ROIs, where the coordinates are with respect |
no test coverage detected