android - camera parameters can not be set -


I do not know why error generates error when I set the camera parameter in relation to 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

JavaCode:

  @ 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 (); }   

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.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -