Class Quadrangle

Class Quadrangle

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.2.0)

Stores a set of four System.Drawing.Points that represent a Aspose.BarCode.BarCodeRecognition.Quadrangle region.

public class Quadrangle : IEquatable<quadrangle>

Inheritance

objectQuadrangle

Implements

IEquatable<quadrangle>

Inherited Members

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

Constructors

Quadrangle()

Initializes a new empty instance of the Aspose.BarCode.BarCodeRecognition.Quadrangle class.

public Quadrangle()

Quadrangle(Point, Point, Point, Point)

public Quadrangle(Point leftTop, Point rightTop, Point rightBottom, Point leftBottom)

Parameters

leftTop Point

rightTop Point

rightBottom Point

leftBottom Point

Fields

Empty

Represents a Aspose.BarCode.BarCodeRecognition.Quadrangle class with its properties left uninitialized.

public static readonly Quadrangle Empty

Field Value

Quadrangle

Properties

BoundingRectangle

Gets System.Drawing.Rectangle bounding this Aspose.BarCode.BarCodeRecognition.Quadrangle

[Browsable(false)]
public Rectangle BoundingRectangle { get; }

Property Value

Rectangle

IsEmpty

Tests whether all System.Drawing.Points of this Aspose.BarCode.BarCodeRecognition.Quadrangle have values of zero.

[Browsable(false)]
public bool IsEmpty { get; }

Property Value

bool

LeftBottom

Gets left-bottom corner System.Drawing.Point of Aspose.BarCode.BarCodeRecognition.Quadrangle region

public Point LeftBottom { get; set; }

Property Value

Point

LeftTop

Gets left-top corner System.Drawing.Point of Aspose.BarCode.BarCodeRecognition.Quadrangle region

public Point LeftTop { get; set; }

Property Value

Point

RightBottom

Gets right-bottom corner System.Drawing.Point of Aspose.BarCode.BarCodeRecognition.Quadrangle region

public Point RightBottom { get; set; }

Property Value

Point

RightTop

Gets right-top corner System.Drawing.Point of Aspose.BarCode.BarCodeRecognition.Quadrangle region

public Point RightTop { get; set; }

Property Value

Point

Methods

Contains(Point)

public bool Contains(Point pt)

Parameters

pt Point

Returns

bool

Contains(int, int)

Determines if the specified point is contained within this Aspose.BarCode.BarCodeRecognition.Quadrangle class.

public bool Contains(int x, int y)

Parameters

x int

The x point cordinate.

y int

The y point cordinate.

Returns

bool

Returns true if point is contained within this Aspose.BarCode.BarCodeRecognition.Quadrangle class; otherwise, false.

Contains(Quadrangle)

Determines if the specified Aspose.BarCode.BarCodeRecognition.Quadrangle is contained or intersect this Aspose.BarCode.BarCodeRecognition.Quadrangle class.

public bool Contains(Quadrangle quad)

Parameters

quad Quadrangle

The Aspose.BarCode.BarCodeRecognition.Quadrangle to test.

Returns

bool

Returns true if Aspose.BarCode.BarCodeRecognition.Quadrangle is contained or intersect this Aspose.BarCode.BarCodeRecognition.Quadrangle class; otherwise, false.

Contains(Rectangle)

public bool Contains(Rectangle rect)

Parameters

rect Rectangle

Returns

bool

Equals(Quadrangle)

Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.Quadrangle value.

public bool Equals(Quadrangle other)

Parameters

other Quadrangle

An Aspose.BarCode.BarCodeRecognition.Quadrangle value to compare to this instance.

Returns

bool

true if obj has the same value as this instance; otherwise, false.

Equals(object)

Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.Quadrangle value.

public override bool Equals(object obj)

Parameters

obj object

An System.Object value to compare to this instance.

Returns

bool

true if obj has the same value as this instance; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer hash code.

ToString()

Returns a human-readable string representation of this Aspose.BarCode.BarCodeRecognition.Quadrangle.

public override string ToString()

Returns

string

A string that represents this Aspose.BarCode.BarCodeRecognition.Quadrangle.

Operators

operator ==(Quadrangle, Quadrangle)

Returns a value indicating whether the first Aspose.BarCode.BarCodeRecognition.Quadrangle value is equal to the second.

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

Parameters

first Quadrangle

A first compared value

second Quadrangle

A second compared value

Returns

bool

true if first has the same value as second; otherwise, false.

operator !=(Quadrangle, Quadrangle)

Returns a value indicating if the first Aspose.BarCode.BarCodeRecognition.Quadrangle value is different from the second.

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

Parameters

first Quadrangle

A first compared value

second Quadrangle

A second compared value

Returns

bool

true if first has the different value from second; otherwise, false. </quadrangle>

 English