Table of contents
Swift
Objective-C

This documentation is deprecated. It applies only to legacy version 9.x of Barcode Reader and must not be used for new development.

Please refer to the latest documentation and Migration Guide, which supersede this content.

General Methods

Method Description
GetVersion Get version information of SDK.
TransformCoordinates Transform the coordinates of a point based on the given transformation matrix.

GetVersion

Get version information of SDK.

string Dynamsoft.DBR.BarcodeReader.GetVersion()

Return Value
The version info string.

Code Snippet

BarcodeReader reader = BarcodeReader.GetInstance();
if (reader != null)
{
	string version = reader.GetVersion();
	//... add further process
    reader.Recycle();
}

TransformCoordinates

Transform the coordinates of a point based on the given transformation matrix.

static Point Dynamsoft.DBR.BarcodeReader.TransformCoordinates(Point originalPoint, double[] transformationMatrix)

Parameters

[in] originalPoint : The original point that needs to be transformed.
[in] transformationMatrix : The 3x3 matrix used for coordinate transformation.

Return Value

The point after transformation.

Code Snippet

//get originalPoint and transformationMatrix from LocalizationResult
Point targetPoint = BarcodeReader.TransformCoordinates(originalPoint, transformationMatrix);

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: