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

Function scaleInt

util.go:526–528  ·  view source on GitHub ↗
(value int, scale float64)

Source from the content-addressed store, hash-verified

524}
525
526func scaleInt(value int, scale float64) int {
527 return int(math.Round(float64(value) * scale))
528}
529
530// MarginsFrom96DPI converts from 1/96" units to native pixels.
531func MarginsFrom96DPI(value Margins, dpi int) Margins {

Callers 7

SizeMethod · 0.85
IntFrom96DPIFunction · 0.85
IntTo96DPIFunction · 0.85
scaleMarginsFunction · 0.85
scalePointFunction · 0.85
scaleRectangleFunction · 0.85
scaleSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…