# CanvasContext wx.createCanvasContext(string canvasId, Object this)

From base library 2.9.0 Start, this interface stops maintenance, please use Canvas replace

with Promise style call: Not supported

Mini Program plugin: Support, need to Mini Program base library version no less than 1.9.6

create canvas Drawing context CanvasContext object

# parameter

# string canvasId

To get the context canvas assembly canvas-id attribute

# Object this

Under a custom component, this for the current component instance, indicates that under this custom component the lookup for the canvas-id of canvas If omitted, does not look inside any custom components

# Return value

# CanvasContext