VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.FormsProcessing.FormRecognition.Omr Namespace / OmrFieldTemplate Class / FilledPercentOnTemplate Property
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    FilledPercentOnTemplate Property (OmrFieldTemplate)
    In This Topic
    Gets or sets the black pixel density of the field on the template image.
    Syntax
    'Declaration
    
    <DescriptionAttribute("The black pixel density of the field on the template image.")>
    <DefaultValueAttribute(0)>
    Public Property FilledPercentOnTemplate As Single
    
    
    [Description("The black pixel density of the field on the template image.")]
    [DefaultValue(0)]
    public float FilledPercentOnTemplate { get; set; }
    
    
    [Description("The black pixel density of the field on the template image.")]
    [DefaultValue(0)]
    public: __property float get_FilledPercentOnTemplate();
    public: __property void set_FilledPercentOnTemplate(
    float value
    );
    [Description("The black pixel density of the field on the template image.")]
    [DefaultValue(0)]
    public:
    property float FilledPercentOnTemplate { float get(); void set(float value); }

    Property Value

    Valid values are from 0 to 1. Default value is 0.
    Exceptions
    ExceptionDescription
    Thrown if value is less than 0 or greater than 1.
    Remarks

    The value of this property acts like a lower bound of the density range when applying thresholds (Threshold, UnfilledThreshold and FilledThreshold). The CompensateTemplateImageBackground(VintasoftImage) method must be called for calculating the actual value of the black pixel density on the template image.

    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also