VintaSoft Barcode .NET SDK 16.1: 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

<DescriptionAttribute("Scale factor that is used for upscaling or downscaling an image before barcode recognition.")>
<DefaultValueAttribute(1)>
Public Property ImageScaleFactor As Single

[Description("Scale factor that is used for upscaling or downscaling an image before barcode recognition.")]
[DefaultValue(1)]
public float ImageScaleFactor { get; set; }

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 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also