关于企业微信应用在安卓手机上无法调用查相机直接上传图片到本地服务器

关于企业微信应用在安卓手机上无法调用查相机直接上传图片到本地服务器,第1张

//Creates a new Camera object to access a particular hardware cameraCamera camera = Cameraopen() ;//Returns the current settings for this Camera serviceParameters parameters = cameragetParameters();//Sets the dimensions for preview picturesparameterssetPreviewSize(int width, int height) //Sets the dimensions for picturesparameterssetPictureSize(int width, int height) //你先获取一下 你手机支持的分辨率,不然你不好设置你手机支持的最高分辨率//Creates a single string with all the parameters set in this Parameters object //cameragetParameters()flatten(); //return String 你看一下返回的字符串,就可以看到很多手机摄像的很多相关参数了。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zz/13413535.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-07-31
下一篇 2023-07-31

发表评论

登录后才能评论

评论列表(0条)

保存