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

Function scaleRectangle

util.go:576–583  ·  view source on GitHub ↗
(value Rectangle, scale float64)

Source from the content-addressed store, hash-verified

574}
575
576func scaleRectangle(value Rectangle, scale float64) Rectangle {
577 return Rectangle{
578 X: scaleInt(value.X, scale),
579 Y: scaleInt(value.Y, scale),
580 Width: scaleInt(value.Width, scale),
581 Height: scaleInt(value.Height, scale),
582 }
583}
584
585// SizeFrom96DPI converts from 1/96" units to native pixels.
586func SizeFrom96DPI(value Size, dpi int) Size {

Callers 2

RectangleFrom96DPIFunction · 0.85
RectangleTo96DPIFunction · 0.85

Calls 1

scaleIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…