该ImageBitmap.close() 方法处理与ImageBitmap.
语法
close()参数
没有任何。
返回值
无(undefined)。
例子
const offscreen = new OffscreenCanvas(256, 256);
const gl = offscreen.getContext('webgl');
// Perform some drawing using the gl context
const bitmap = offscreen.transferToImageBitmap();
// ImageBitmap { width: 256, height: 256 }
bitmap.close();
// ImageBitmap { width: 0, height: 0 } — disposed作者:terry,如若转载,请注明出处:https://www.web176.com/canvas_api/7855.html
支付宝
微信