Struct Rectangle

Struct Rectangle

이름 공간 : Aspose.OCR 모임: Aspose.OCR.dll (25.4.0)

그것은 직경의 위치와 크기를 나타내는 4 개의 인테리어 세트를 저장합니다.

public struct Rectangle

상속 회원들

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

Constructors

Rectangle(인트, 인트, 인트)

Aspose.OCR.Rectangle 구조의 새로운 사례를 지정된 위치와 크기로 시작합니다.

public Rectangle(int x, int y, int width, int height)

Parameters

x int

좌석의 상단 왼쪽 구석의 x 조정.

y int

Y 코디네이트는 오른쪽 상단 모서리의 상단 모서리입니다.

width int

오른쪽의 넓이.

height int

오른쪽의 높이를 보여준다.

Fields

Height

오른쪽의 넓이.

public int Height

필드 가치

int

Width

오른쪽의 높이 입니다.

public int Width

필드 가치

int

X

좌석 x 위치

public int X

필드 가치

int

Y

좌석 및 위치.

public int Y

필드 가치

int

Properties

Bottom

Aspose.OCR.Rectangle.Y 및 Aspose.OCR.Rectangle.High 이 Aspose.OCR.Rectangle 구조의 속성 값의 합입니다.

public int Bottom { get; set; }

부동산 가치

int

Empty

Aspose.OCR.Rectangle 구조의 새로운 예를 들어, Aspose.OCR.Rectangle.X, Aspose.OCR.Rectangle.Y, Aspose.OCR.Rectangle.Width 및 Aspose.OCR.Rectangle.High 값이 0으로 설정되어 있습니다.

public static Rectangle Empty { get; }

부동산 가치

Rectangle

IsEmpty

이 Aspose.OCR.Rectangle의 모든 숫자 속성이 0의 값을 가지고 있는지 여부를 나타내는 값을 얻습니다.

public bool IsEmpty { get; }

부동산 가치

bool

Left

이 Aspose.OCR..Rectangle 구조의 왼쪽 가장자리의 x-코디네이트를 얻거나 설정합니다.

public int Left { get; set; }

부동산 가치

int

Right

Aspose.OCR.Rectangle.X 및 Aspose.OCR.Rectangle.Width 이 Aspose.OCR.Rectangle 구조의 소유 가치를 얻거나 설정합니다.

public int Right { get; set; }

부동산 가치

int

Top

이 Aspose.OCR.Rectangle 구조의 상단 가장자리의 y-koordinate를 얻거나 설정합니다.

public int Top { get; set; }

부동산 가치

int

Methods

Contains(이트, 이트)

지정된 포인트가 이 Aspose.OCR.Rectangle 구조 내에 있는지 결정합니다.

public bool Contains(int x, int y)

Parameters

x int

테스트해야 할 지점의 x 조정.

y int

시험할 지점의 Y 조정.

Returns

bool

이 방법은 x’ 및 y’로 정의된 포인트가 이 Aspose.OCR.Rectangle 구조 내에 포함되어 있는 경우에 사실로 돌아갑니다; 그렇지 않으면 가짜입니다.

Equals(객체)

obj’가 이 Aspose.OCR.Rectangle 구조와 동일한 위치와 크기를 가진 Aspose.OCR.Rectangle 구조인지 테스트합니다.

public override bool Equals(object obj)

Parameters

obj object

시험할 수 있는 시스템.Object

Returns

bool

이 방법은 <코드 클래스=“paramref”>obj’가 Aspose.OCR.Rectangle 구조와 그것의 Aspose.OCR.Rectangle.X, Aspose.OCR.Rectangle.Y, Aspose.OCR.Rectangle.Width, 그리고 Aspose.OCR.Rectangle.High 속성이 이 Aspose.OCR.Rectangle 구조의 해당 속성과 동일하다면 사실로 돌아갑니다.

GetHashCode()

이 Aspose.OCR.Rectangle 구조에 대한 해시 코드를 반환합니다.

public override int GetHashCode()

Returns

int

이 직경에 대한 해시 코드를 나타내는 전체.

ToString()

이 Aspose.OCR.Rectangle의 속성을 인간 읽을 수 있는 줄로 변환합니다.

public override string ToString()

Returns

string

이 Aspose.OCR.Rectangle 구조의 위치, 폭 및 높이를 포함하는 스트립.

Operators

운영자 =(오른쪽, 오른쪽)

두 개의 Aspose.OCR.Rectangle 구조가 동일한 위치와 크기를 가지고 있는지 여부를 테스트합니다.

public static bool operator ==(Rectangle left, Rectangle right)

Parameters

left Rectangle

Aspose.OCR.Rectangle 구조는 평등 운영자의 왼쪽에 있습니다.

right Rectangle

Aspose.OCR.Rectangle 구조는 평등 운영자의 권리입니다.

Returns

bool

이 운영자는 두 개의 Aspose.OCR.Rectangle 구조가 동일한 Aspose.OCR.Rectangle.X, Aspose.OCR.Rectangle.Y, Aspose.OCR.Rectangle.Width 및 Aspose.OCR.Rectangle.High 속성을 가지고 있다면 사실로 돌아갑니다.

운영자 !=(오른쪽, 오른쪽)

두 개의 Aspose.OCR.Rectangle 구조가 위치 또는 크기로 다르지 여부를 테스트합니다.

public static bool operator !=(Rectangle left, Rectangle right)

Parameters

left Rectangle

Aspose.OCR.Rectangle 구조는 불평등 운영자의 왼쪽에 있습니다.

right Rectangle

Aspose.OCR.Rectangle 구조는 불평등 운영자의 권리입니다.

Returns

bool

이 운영자는 ASPOSE.OCR.Rectangle.X, ASPOSE.OCR.Rectangle.Y, ASPOSE.OCR.Rectangle.Width 또는 ASPOSE.OCR.Rectangle.두 ASPOSE.OCR.Rectangle 구조의 높이 속성이 불평등한 경우에 사실로 돌아갑니다; 그렇지 않으면 가짜.

 한국어