←Select platform

Variance Property

Summary

Gets or sets the amount of width change that is tolerated between adjacent line slices.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public int Variance { get; set; } 
Public Property Variance As Integer 
public int Variance {get; set;} 
@property (nonatomic, assign) NSInteger variance 
public int getVariance() 
public void setVariance(int value) 
             
 <br/>get_Variance();<br/>set_Variance(value);<br/>Object.defineProperty('Variance');  
public: 
property int Variance { 
   int get(); 
   void set (    int ); 
} 

Property Value

Amount of width change that is tolerated between adjacent line slices. If LineRemoveCommandFlags.UseDpi is set in the Flags property, units are in thousandths of an inch, otherwise units are in pixels. This property is valid only if LineRemoveCommandFlags.UseVariance is set in the Flags property. For example, the following horizontal line is 30 pixels in length (X represents a pixel)

If Variance is 2 pixels (i.e. tolerate width changes of 2 pixels or less), the first 10 columns and the last 10 columns of the line will be removed. The middle 10 columns will be unchanged. This helps preserve characters that intersect a line that is being removed.

Example

Refer to ImageRegion.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly