VintaSoft Barcode .NET SDK 14.3: Documentation for .NET developer
Vintasoft.Barcode Namespace / ReaderSettings Class / ImageScaleFactor Property
Syntax Remarks Requirements SeeAlso
In This Topic
    ImageScaleFactor Property (ReaderSettings)
    In This Topic
    Gets or sets a scale factor that is used for upscaling or downscaling an image before barcode recognition.
    Syntax
    'Declaration
    
    <DefaultValueAttribute(1)>
    <DescriptionAttribute("Scale factor that is used for upscaling or downscaling an image before barcode recognition.")>
    Public Property ImageScaleFactor As Single
    
    
    [DefaultValue(1)]
    [Description("Scale factor that is used for upscaling or downscaling an image before barcode recognition.")]
    public float ImageScaleFactor { get; set; }
    
    
    [DefaultValue(1)]
    [Description("Scale factor that is used for upscaling or downscaling an image before barcode recognition.")]
    public: __property float get_ImageScaleFactor();
    public: __property void set_ImageScaleFactor(
    float value
    );
    [DefaultValue(1)]
    [Description("Scale factor that is used for upscaling or downscaling an image before barcode recognition.")]
    public:
    property float ImageScaleFactor { float get(); void set(float value); }

    Property Value

    1 - image not changed;
    >1 - image will be upscaled;
    <1 - image will be downscaled.
    Default value is 1. Minimum value is 1/20. Maximum value is 4.
    Remarks

    Recomendations:
    To increase recognition quality - upscale image if image contains very small barcodes (single bar or matrix cell is less than 1.5 pixel).
    To increase recognition speed - downscale image if image contains large barcodes (single bar or cell is greater than 6 pixels).
    Optimal single bar or matrix cell size is 3..6 pixels.

    Requirements

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

    See Also