|
|
|
|
|
CameraListParameter (Function) In french: CaméraListeParamètre Lists the values supported by the device camera for a given parameter. Remarks: - To modify or find out the current value of a parameter for the device camera, use CameraParameter.
- CameraListParameter can be used in the Android emulator but not in the simulator.
- This function is equivalent to VideoListParameter.
sListeRésolution is string
sListeRésolution = CameraListParameter(vipPhotoResolution)
IF ErrorOccurred = False THEN
CameraParameter(vipPhotoResolution, ExtractString(sListeRésolution, lastRank, CR))
ELSE
Error("Erreur durant la récupération des résolutions supportées par la caméra.")
END
Syntax
<Result> = CameraListParameter(<Parameter>)
<Result>: Character string - List of values supported by the camera for the specified <Parameter>. This list has the following format:
<Value 1>+ TC + <Value 2> + TC + ... + <Value N> - Empty string ("") if the parameter is not supported by the camera or if an error occurred while retrieving the parameters.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
<Parameter>: Character String constant or character string Parameter for which the supported values must be retrieved. This parameter can correspond to: - one of the preset constants. These constants correspond to the most common parameters.
- a String corresponding to the name of the desired parameter.
Caution: parameter name is case sensitive and accentuated. See the documentation about the Android SDK or about the device to find out the name of additional supported parameters. If the specified name does not correspond to a parameter supported by the camera, the function will return an empty string.
The available constants are as follows: | | vipBalance | White balance modes supported by the camera: automation, daylight, cloudy, ...
| vipCamera | Subscripts and types of the cameras available on the device. The list has the following format: where:- <Subscript> is an integer included between 1 and the number of cameras found on the device,
- <Type> is one of the following constants:
- vipDorsalCamera: Back camera located on the side opposite the screen.
- vipFrontal Camera: Frontal camera located on the same side as the screen.
| vipEffect | Color effects: black and white, poster, sepia, ...
| vipFlash | Flash modes supported by the camera: automation, without, red-eye reduction, etc. | vipFlicker | Anti-banding adjustments supported by the camera: automatic, none, 50Hz, 60Hz, ...
| vipFocus | Focus modes supported by the camera: automation, macro, fixed, ...
| vipISO | ISO sensitivities supported by the camera: automatic, 100, 200, 400, ...
| vipPhotoResolution | Resolutions supported by the camera for taking photos. The list is sorted in ascending order, from the lowest resolution to the highest one. The returned values have the following format: Example:
640<TAB>480<CR>1024<TAB>760<CR>2048<TAB>1240 | vipScene | Scene types supported by the camera: automation, night, sport, ...
| vipZoom | Zoom values supported by the camera. The returned values have the following format:- 100 (1x zoom = no zoom)
- 200 (2x zoom)
- 300 (3x zoom)
- 350 (3,5x zoom)
- ...
The first value is always 100 and the last one corresponds to the maximum zoom. Example: Note The function will return an empty string ("") if the device's camera does not support zoom.
|
Remarks Required permissions This function changes the permissions required by the application. Permission required: CAMERA. This permission allows the applications to access the camera. Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|