rotateImage method
Rotates image by specified angle.
export async function rotateImage(settings)
Parameters
- settings
- Object specifying parameters of the image rotation (see Options).
Return values
The method returns result depending on how the scenario finished (see Result).
Options
The table below describes parameters that you can pass as the settings argument to change image rotation settings. Omitting a parameter means that a default setting will be used.
Parameter | Value type | Description |
---|---|---|
licenseFileName | string |
The name of the license file. This file must be located in the /assets/ directory in your project. Default: "MobileCapture.License". |
imageUri | string |
imageUri (string): Image source for the operation passed as URI. This parameter can be set to the following values:
Required parameter. |
angle | int | The angle in degrees. Available values of the angle: 0, 90, 180, 270. |
result | object |
Result image description, represented by the following parameters:
|
Result
This section describes the object that represents image capture results. Returned parameters depend on the scenario.
Parameter | Value type | Description |
---|---|---|
imageUri | string | Rotatedimage returned as URI. This image corresponds to the description in the passed result parameter. |
size | object | Rotated image size represented by its width and height in pixels. The values of the width and height are stored in the following parameters:
|
Example of a result JSON.
3/2/2022 12:59:15 PM