返回到:Canvas API:OffscreenCanvas
设置或者获取OffscreenCanvas
对象的高度。
语法
var pxl = offscreen.height;
offscreen.height = pxl;
例子
创建一个新的离屏 canvas,获取或者设置离屏 canvas 的高度:
var offscreen = new OffscreenCanvas(256, 256);
offscreen.height; // 256
offscreen.height = 512;
返回到:Canvas API:OffscreenCanvas
作者:terry,如若转载,请注明出处:https://www.web176.com/canvas_api/7775.html