
//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
你看一下返回的字符串,就可以看到很多手机摄像的很多相关参数了。
评论列表(0条)