VintaSoft Barcode .NET SDK v10.0
Vintasoft.WpfBarcode Namespace / ReaderSettings Class / ImageScaleFactor Property




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()>
    <DescriptionAttribute("Scale factor that is used for upscaling or downscaling an image before barcode recognition.")>
    Public Property ImageScaleFactor As Single
    'Usage
     
    Dim instance As ReaderSettings
    Dim value As Single
     
    instance.ImageScaleFactor = value
     
    value = instance.ImageScaleFactor
    [DefaultValue()]
    [Description("Scale factor that is used for upscaling or downscaling an image before barcode recognition.")]
    public float ImageScaleFactor {get; set;}
    [DefaultValue()]
    [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()]
    [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/10. 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: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also