android - camera parameters can not be set -
I do not know why error generates error when I set the camera parameter in relation to JavaCode: In general, the class can be given any information on runtime for this information. Can be inquired for the camera device Note that there are not necessarily the same supported mode in the front and back camera, so you should always get the parameter from the camera after opening it to see if it is supported. Specifically, you can use and to determine which effects and visual modes of your current device are supported. setSceneMode And
SetColorEffect as shown below, and
set parameters failed but when I use the above mentioned methods as
SCENE_MODE_CANDLELIGHT and
EFFECT_SOLARIZE Sorts respectively
@ Override change the surface of the public null (page folder holder, integer format, Uarnank width, intensity height) {// Tudo auto-generated went method stub Android Khardveyr Kamrakpametrets Kampametr = Yhkmankemrakjet parameter (); camParameter.setSceneMode (Parameters.SCENE_MODE_BEACH); camParameter.setColorEffect (Parameters.EFFECT_WHITEBOARD); camParameter.setFlashMode (Parameters.FLASH_MODE_AUTO); CamParameter.setPreviewSize (width / 2, height / 2); CamParameter.setPictureSize (width / 2, height / 2); MyCamera.setParameters (camParameter); MyCamera.startPreview (); }
Comments
Post a Comment