RectangleTo96DPI converts from native pixels to 1/96" units.
(value Rectangle, dpi int)
| 570 | |
| 571 | // RectangleTo96DPI converts from native pixels to 1/96" units. |
| 572 | func RectangleTo96DPI(value Rectangle, dpi int) Rectangle { |
| 573 | return scaleRectangle(value, 96.0/float64(dpi)) |
| 574 | } |
| 575 | |
| 576 | func scaleRectangle(value Rectangle, scale float64) Rectangle { |
| 577 | return Rectangle{ |
no test coverage detected
searching dependent graphs…