我正在使用Playbook Air SDK 2.1.0,尝试捕获我的webview内容的位图.这是我尝试过的:
var bmd:BitmapData = new BitmapData(webView.viewPort.width, webView.viewPort.height);
webView.drawViewPortToBitmapData(bmd);
var bitmap:Bitmap = new Bitmap(bmd);
view.stage.addChild(bitmap);
Run Code Online (Sandbox Code Playgroud)
但是,添加到舞台的位图始终为空白.我想知道是否有人在Playbook上成功使用了QNXStageWebView.drawViewPortToBitmapData()?