# CanvasContext.scale(number scaleWidth, number scaleHeight)
with Promise style call: Not supported
Mini Program plugin: Support
After the call, the following paths are created with their ordinate and abscissa scaling. Multiple calls multiply.
# parameter
# number scaleWidth
Abscissa scaling multiple (1 = 100%,0.5 = 50%,2 = 200%)
# number scaleHeight
Multiple of ordinate axis scaling (1 = 100%,0.5 = 50%,2 = 200%)
# sample code
const ctx = wx.createCanvasContext('myCanvas')
ctx.strokeRect(10, 10, 25, 15)
ctx.scale(2, 2)
ctx.strokeRect(10, 10, 25, 15)
ctx.scale(2, 2)
ctx.strokeRect(10, 10, 25, 15)
ctx.draw()