Camera.Parameters
时间: 2024-05-19 09:16:01 浏览: 5
The Camera.Parameters class is used to configure the camera settings such as focus mode, exposure, white balance, flash mode, picture size, etc.
Some of the important methods of the Camera.Parameters class are:
1. getSupportedFocusModes() - Returns a list of supported focus modes.
2. setFocusMode(String focusMode) - Sets the focus mode to the specified value.
3. getSupportedPictureSizes() - Returns a list of supported picture sizes.
4. setPictureSize(int width, int height) - Sets the picture size to the specified width and height.
5. getSupportedFlashModes() - Returns a list of supported flash modes.
6. setFlashMode(String flashMode) - Sets the flash mode to the specified value.
7. getSupportedWhiteBalance() - Returns a list of supported white balance modes.
8. setWhiteBalance(String whiteBalance) - Sets the white balance mode to the specified value.
9. getExposureCompensation() - Returns the current exposure compensation value.
10. setExposureCompensation(int value) - Sets the exposure compensation value to the specified value.