# OffscreenCanvas

Start from base library version 2.7.0. Please remaining backward compatible.

Off-screen canvas Example, you can use the wx.createOffscreenCanvas Create.

# attribute

# number width

Canvas width

# number height

Canvas height

# method

# RenderingContext OffscreenCanvas.getContext(string contextType)

This method returns OffscreenCanvas Drawing context

# Image OffscreenCanvas.createImage()

Create a picture object. Support in 2D Canvas and WebGL Canvas Under use, But does not support mixing 2D and WebGL The method.