MultimediaTools.MakePhoto

Syntax:

MakePhoto(<CameraType>, <Resolution>, <Quality>, <Monochrome>)

Parameters:

<CameraType> (optional)

Type: DeviceCameraType.
Specifies the camera to make an image.

<Resolution> (optional)

Type: PictureSize.
Specifies the resolution of the image to be made.
The default value: 0;0 (the parameter will not be used when starting the camera):
  • if the set resolution is not supported by the device, the nearest appropriate resolution will be used.
  • if the set resolution is negative, an exception will be initiated.
The parameter is ignored in the devices fitted with iOS.

<Quality> (optional)

Type: Number.
Determines the image quality in percent.
The allowed range of values: 1 - 100.
By default - 100 % (maximum quality image).
If the value is outside the allowed range, an exception is called.

<Monochrome> (optional)

Type: Boolean.
If the parameter is set to "Yes" (True), a photographic image will be monochromatic. Otherwise, monochromatic mode is not used.
"No" is used by default.
When a photographic image is created on iOS powered devices, the monochromatic effect is not applied to the camera, but the photographic image will be monochromatic.

Returned value:

Type: MultimediaData; Undefined.
Undefined - the photo is not taken.

Description:

Makes a photoshot by the built-in photo/video camera.

Availability:

Mobile application (client).

    

1C:Enterprise Developer's Community