## UniCanvasElement

<!-- CUSTOMTYPEJSON.UniCanvasElement.description -->

参考：[canvas组件](../component/canvas.md)

<!-- CUSTOMTYPEJSON.UniCanvasElement.extends -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.param -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.compatibility -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.example -->

### UniCanvasElement 的方法 @unicanvaselement-methods
<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.getContext.name -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.getContext.description -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.getContext.compatibility -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.getContext.param -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.getContext.returnValue -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.getContext.tutorial -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob.name -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob.description -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob.compatibility -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob.param -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob.returnValue -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob.tutorial -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_1.name -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_1.description -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_1.compatibility -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_1.param -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_1.returnValue -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_1.tutorial -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_2.name -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_2.description -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_2.compatibility -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_2.param -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_2.returnValue -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toBlob_2.tutorial -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL.name -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL.description -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL.compatibility -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL.param -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL.returnValue -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL.tutorial -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_1.name -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_1.description -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_1.compatibility -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_1.param -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_1.returnValue -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_1.tutorial -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_2.name -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_2.description -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_2.compatibility -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_2.param -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_2.returnValue -->

<!-- CUSTOMTYPEJSON.UniCanvasElement.methods.toDataURL_2.tutorial -->

**注意事项**
- toDataURL方法在 App-Android 平台暂不支持在页面的onLoad和组件的onMount生命周期中调用
