MCPcopy Create free account
hub / github.com/PageBot/PageBot / getScaledWH

Method getScaledWH

Lib/pagebot/contexts/basecontext/basecontext.py:706–708  ·  view source on GitHub ↗

Scales width and height according to previously set scale.

(self, w, h)

Source from the content-addressed store, hash-verified

704 # Scale.
705
706 def getScaledWH(self, w, h):
707 """Scales width and height according to previously set scale."""
708 return w * self._sx, h * self._sy
709
710 # Transformations.
711

Callers 1

imageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected