MCPcopy Create free account
hub / github.com/lxn/walk / RectangleTo96DPI

Function RectangleTo96DPI

util.go:572–574  ·  view source on GitHub ↗

RectangleTo96DPI converts from native pixels to 1/96" units.

(value Rectangle, dpi int)

Source from the content-addressed store, hash-verified

570
571// RectangleTo96DPI converts from native pixels to 1/96" units.
572func RectangleTo96DPI(value Rectangle, dpi int) Rectangle {
573 return scaleRectangle(value, 96.0/float64(dpi))
574}
575
576func scaleRectangle(value Rectangle, scale float64) Rectangle {
577 return Rectangle{

Callers 8

RectangleTo96DPIMethod · 0.85
WndProcMethod · 0.85
bufferedPaintMethod · 0.85
BoundsMethod · 0.85
BoundsMethod · 0.85
BoundsMethod · 0.85
MeasureTextMethod · 0.85

Calls 1

scaleRectangleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…