BarcodeZoneMinDistanceToImageBorders
BarcodeZoneMinDistanceToImageBorders defines the minimum distance (in pixels) between the barcode zone and image borders. It is defined as below:
| Value Type | Value Range | Default Value | Template Structure Type |
|---|---|---|---|
| int | [0, 0x7fffffff] | 0 | FormatSpecification |
Remarks
- If a barcode region has been set, this parameter should not be used.
Setting Methods
BarcodeZoneMinDistanceToImageBorders is supported to be set through RuntimeSetting or JSON template.
As PublicRuntimeSettings Member
BarcodeZoneMinDistanceToImageBorders can be set dynamically during runtime as a member of PublicRuntimeSettings struct.
Code Snippet in C++
//...other codes
PublicRuntimeSettings* pSettings = new PublicRuntimeSettings;
int errorCode = reader->GetRuntimeSettings(pSettings);
pSettings->barcodeZoneMinDistanceToImageBorders = 1;
reader->UpdateRuntimeSettings(pSettings);
delete pSettings;
//...other codes
See Also
PublicRuntimeSettings:JavaScript | C | C++ | .NET | Python | Java | Java-Android | Objective-C & Swift
As JSON Parameter
BarcodeZoneMinDistanceToImageBorders as a JSON parameter is a number value defined as below.
| Key Name | Key Value |
|---|---|
| BarcodeZoneMinDistanceToImageBorders | A number from [0, 0x7fffffff] |
JSON Example
{
"BarcodeZoneMinDistanceToImageBorders": 1
}