[]屏幕截屏问题


Offline.prototype.setSave=function(){
if( window.conch )
{
window.conch.captureScreen(function(arrayBuff,width,height){
window.image = window.document.createElement("img");
window.image.putImageData(arrayBuff,width,height);
})
}
}
 
 
E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen
           >>>>>>>>>>>>before
E/LayaBox: >>>>>>>>>>>>after
E/temp: >>>>>>>>>>>>>>>>>>>>>>>useTimenew808
I/LayaBox: alert=apploader.js:5719: TypeError: image is not a function
                   this._nativeObj = new image();
                                     ^
           TypeError: image is not a function
               at new HTMLImageElement (apploader.js:5719:27)
               at Document.create_img (apploader.js:6161:19)
               at Document.createElement (apploader.js:6145:21)
               at conch.eval (http://114.115.137.176/play/main.min.js:1:263)
 
那位大神帮我看看,搞了3天了,拜托了,急呀
已邀请:

Aar0n

赞同来自:

Browser.window试试

sata121

赞同来自:

发了

Aar0n

赞同来自:

 Setting.prototype.del=function(){
if(Laya.Browser.window.conch )
{

window.conch.captureScreen(function(arrayBuff,width,height){


window.image = window.document.createElement("img");
image.putImageData(arrayBuff,width,height);
//...使用image对象
})

}
}

要回复问题请先

商务合作
商务合作