Leadtools.Services.Barcode.DataContracts Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Granularity Property
See Also 
Leadtools.Services.Barcode.DataContracts Namespace > Barcode1d Class : Granularity Property



Gets or sets the number of scanned lines per column to skip when reading a barcode.

Syntax

Visual Basic (Declaration) 
<DataMemberAttribute(Name="Granularity", IsRequired=True)>
Public Property Granularity As Integer
Visual Basic (Usage)Copy Code
Dim instance As Barcode1d
Dim value As Integer
 
instance.Granularity = value
 
value = instance.Granularity
C# 
[DataMemberAttribute(Name="Granularity", IsRequired=true)]
public int Granularity {get; set;}
C++/CLI 
[DataMemberAttribute(Name="Granularity", IsRequired=true)]
public:
property int Granularity {
   int get();
   void set (int value);
}

Return Value

Number of scanned lines per column to skip when reading a barcode. The default value is 9. This means that every tenth line will be scanned while looking for a barcode.

Example

For an example, refer to Barcode1d example.

Remarks

This property is valid only for the Leadtools.Services.Barcode.ServiceContracts.IBarcodeService.Read operation. Scanning every line slows the search process, whereas skipping very many lines may result in skipping over the barcode.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Applications developed with LEADTOOLS WCF components require runtime licenses. Server licensing is required for applications on a server. For more information, refer to: Imaging Pro/Document/Medical Features