Enum InverseImageMode
Enum InverseImageMode
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)
Chế độ cho phép hoặc vô hiệu hóa việc nhận diện thêm mã vạch trên hình ảnh có màu đảo ngược (độ sáng).
public enum InverseImageMode
Fields
Auto = 0
Vô hiệu hóa việc nhận diện thêm mã vạch trên hình ảnh đảo ngược cho tất cả các loại mã vạch ngoại trừ QR Code.
Disabled = 1
Vô hiệu hóa việc nhận diện thêm mã vạch trên hình ảnh đảo ngược.
Enabled = 2
Cho phép nhận diện thêm mã vạch trên hình ảnh đảo ngược.
Examples
Mẫu này cho thấy cách sử dụng chế độ InverseImage
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Extended, DecodeType.Code128))
{
reader.QualitySettings.InverseImage = InverseImageMode.Enabled;
foreach (BarCodeResult result in reader.ReadBarCodes())
Console.WriteLine(result.CodeText);
}