草庐IT

android - Titanium:缺少 toImage() 转换的清晰度(Android 和 iOS)

我使用TitaniumAppcelerator开发Android和iOS应用。我已经使用toImage()方法将我的View转换为图像,但是查看图像时,它看起来有点模糊,不清楚。我应该怎么做才能获得更好的图像质量?if(Ti.Platform.osname=="android"){var_pic=myView.toImage().media;}else{var_pic=myView.toImage();} 最佳答案 在iOS设备上,toImage方法接收一个额外的参数(第二个参数-第一个是回调)到honorScaleFactor。更