Class BarCodeRegionParameters

Class BarCodeRegionParameters

Tên không gian: Aspose.BarCode.BarCodeRecognition Tổng hợp: Aspose.BarCode.dll (25.4.0)

đại diện cho khu vực mã thanh được công nhận và góc mã thanh

public sealed class BarCodeRegionParameters

Inheritance

object BarCodeRegionParameters

Thành viên thừa kế

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Mẫu này cho thấy làm thế nào để có được mã thanh Angle và giới hạn giá trị quadrangle

using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "12345"))
{
    generator.Save(@"c:\test.png");
}
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39, DecodeType.Code128))
{
    foreach (BarCodeResult result in reader.ReadBarCodes())
    {
        Console.WriteLine("BarCode CodeText: " + result.CodeText);
        Console.WriteLine("BarCode Angle: " + result.Region.Angle);
        Console.WriteLine("BarCode Quadrangle: " + result.Region.Quadrangle);
    }
}
Using generator As New BarcodeGenerator(EncodeTypes.Code128, "12345")
    generator.Save("c:\test.png")
End Using
Using reader As New BarCodeReader("c:\test.png", DecodeType.Code39, DecodeType.Code128)
    For Each result As BarCodeResult In reader.ReadBarCodes()
        Console.WriteLine("BarCode CodeText: " + result.CodeText)
        Console.WriteLine("BarCode Angle: " + result.Region.Angle)
        Console.WriteLine("BarCode Quadrangle: " + result.Region.Quadrangle)
    Next
End Using

Properties

Angle

Nhận góc của mã thanh (0-360).

public double Angle { get; }

Giá trị bất động sản

double

Points

Gets System.Drawing.Points sắp xếp vùng barcode giới hạn

public Point[] Points { get; }

Giá trị bất động sản

Điểm [ ]

Quadrangle

Nhận Aspose.BarCode.BarCodeRecognition.Quadrangle giới hạn barcode khu vực

public Quadrangle Quadrangle { get; }

Giá trị bất động sản

Quadrangle

Rectangle

Gets System.Drawing.Rectangle giới hạn barcode khu vực

public Rectangle Rectangle { get; }

Giá trị bất động sản

Rectangle

Methods

Equals(đối tượng)

Quay lại một giá trị cho thấy nếu mẫu này tương đương với giá trị Aspose.BarCode.BarCodeRecognition.BarCodeRegionParameters.

public override bool Equals(object obj)

Parameters

obj object

Một System.Object giá trị để so sánh với trường hợp này.

Returns

bool

đúng nếu obj có giá trị tương tự như trường hợp này; nếu không, giả.

GetHashCode()

Quay lại mã hash cho trường hợp này.

public override int GetHashCode()

Returns

int

Một 32-bit ký mã hash toàn bộ.

ToString()

Trở lại một biểu hiện chuỗi người đọc của Aspose.BarCode.BarCodeRecognition.BarCodeRegionParameters.

public override string ToString()

Returns

string

Một dòng đại diện cho Aspose.BarCode.BarCodeRecognition.BarCodeRegionParameters.

Operators

Nhà điều hành =(BarCodeRegionParameters, BarCodeRegionParameters)

Quay lại một giá trị cho thấy liệu giá trị đầu tiên Aspose.BarCode.BarCodeRecognition.BarCodeRegionParameters có bằng giá trị thứ hai hay không.

public static bool operator ==(BarCodeRegionParameters first, BarCodeRegionParameters second)

Parameters

first BarCodeRegionParameters

Giá trị so sánh đầu tiên

second BarCodeRegionParameters

Giá trị so sánh thứ hai

Returns

bool

đúng Nếu đầu tiên có giá trị tương tự như thứ hai; nếu không, giả.

Nhà điều hành !=(BarCodeRegionParameters, BarCodeRegionParameters)

Quay lại một giá trị cho thấy nếu giá trị đầu tiên Aspose.BarCode.BarCodeRecognition.BarCodeRegionParameters khác với giá trị thứ hai.

public static bool operator !=(BarCodeRegionParameters first, BarCodeRegionParameters second)

Parameters

first BarCodeRegionParameters

Giá trị so sánh đầu tiên

second BarCodeRegionParameters

Giá trị so sánh thứ hai

Returns

bool

đúng Nếu đầu tiên có giá trị khác với thứ hai; nếu không, giả.

 Tiếng Việt