Javascript: Barcode.getAngle Method
Description
Gets the angle of the barcode image inside the control.
Syntax
<void> Barcode.getAngle(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the angle. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates Barcode.getAngle in a practical document-editing workflow. It gets the angle of the barcode image inside the control.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectAngle(barcode) {
barcode.getAngle(
function(result) {
console.log("get angle result:", result);
},
onTxError
);
}