LayaAir icon indicating copy to clipboard operation
LayaAir copied to clipboard

请问下 淘宝小程序 截屏怎么实现

Open SongBana opened this issue 3 years ago • 0 comments

    var htmlCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0);
    var canvas = htmlCanvas.toBase64("image/png", 0.5);

这个方法在淘宝ide会报错

SongBana avatar Apr 22 '21 10:04 SongBana