Skip to content

支付宝兼容矩阵 · 画布

画布

canvasGetImageData

unsupported

获取 canvas 区域像素数据。

支付宝目标方法

canvasGetImageData

策略说明

  • 微信:直连 `wx.canvasGetImageData`
  • 支付宝:无同等 API,调用时按 unsupported 报错

canvasPutImageData

unsupported

将像素数据绘制到 canvas。

支付宝目标方法

canvasPutImageData

策略说明

  • 微信:直连 `wx.canvasPutImageData`
  • 支付宝:无同等 API,调用时按 unsupported 报错

canvasToTempFilePath

native

支付宝目标方法

canvasToTempFilePath

策略说明

  • 微信:直连 `wx.canvasToTempFilePath`
  • 支付宝:直连 `my.canvasToTempFilePath`

createCanvasContext

native

支付宝目标方法

createCanvasContext

策略说明

  • 微信:直连 `wx.createCanvasContext`
  • 支付宝:直连 `my.createCanvasContext`

createOffscreenCanvas

native

支付宝目标方法

createOffscreenCanvas

策略说明

  • 微信:直连 `wx.createOffscreenCanvas`
  • 支付宝:直连 `my.createOffscreenCanvas`

Released under the MIT License.