Struct Rectangle

Struct Rectangle

Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.1.0)

사각형의 위치와 크기를 나타내는 4개의 정수 집합을 저장합니다.

public struct Rectangle

상속된 멤버

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

생성자

Rectangle(int, int, int, int)

지정된 위치와 크기로 Aspose.OCR.Rectangle 구조체의 새 인스턴스를 초기화합니다.

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

매개변수

x int

사각형의 왼쪽 상단 모서리의 x 좌표입니다.

y int

사각형의 왼쪽 상단 모서리의 y 좌표입니다.

width int

사각형의 너비입니다.

height int

사각형의 높이입니다.

필드

Height

사각형의 높이입니다.

public int Height

필드 값

int

Width

사각형의 너비입니다.

public int Width

필드 값

int

X

사각형의 x 위치입니다.

public int X

필드 값

int

Y

사각형의 y 위치입니다.

public int Y

필드 값

int

속성

Bottom

Aspose.OCR.Rectangle.Y 및 Aspose.OCR.Rectangle.Height 속성 값의 합인 y 좌표를 가져오거나 설정합니다.

public int Bottom { get; set; }

속성 값

int

Empty

Aspose.OCR.Rectangle.X, Aspose.OCR.Rectangle.Y, Aspose.OCR.Rectangle.Width 및 Aspose.OCR.Rectangle.Height 값이 0으로 설정된 Aspose.OCR.Rectangle 구조체의 새 인스턴스를 가져옵니다.

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 속성 값의 합인 x 좌표를 가져오거나 설정합니다.

public int Right { get; set; }

속성 값

int

Top

이 Aspose.OCR.Rectangle 구조체의 위쪽 가장자리의 y 좌표를 가져오거나 설정합니다.

public int Top { get; set; }

속성 값

int

메서드

Contains(int, int)

지정된 점이 이 Aspose.OCR.Rectangle 구조체 내에 포함되는지 여부를 결정합니다.

public bool Contains(int x, int y)

매개변수

x int

테스트할 점의 x 좌표입니다.

y int

테스트할 점의 y 좌표입니다.

반환

bool

이 메서드는 xy로 정의된 점이 이 Aspose.OCR.Rectangle 구조체 내에 포함되면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

Equals(object)

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

public override bool Equals(object obj)

매개변수

obj object

테스트할 System.Object입니다.

반환

bool

이 메서드는 obj가 Aspose.OCR.Rectangle 구조체이고, 그 Aspose.OCR.Rectangle.X, Aspose.OCR.Rectangle.Y, Aspose.OCR.Rectangle.Width 및 Aspose.OCR.Rectangle.Height 속성이 이 Aspose.OCR.Rectangle 구조체의 해당 속성과 같으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

GetHashCode()

이 Aspose.OCR.Rectangle 구조체의 해시 코드를 반환합니다.

public override int GetHashCode()

반환

int

이 사각형의 해시 코드를 나타내는 정수입니다.

ToString()

이 Aspose.OCR.Rectangle의 속성을 사람이 읽을 수 있는 문자열로 변환합니다.

public override string ToString()

반환

string

이 Aspose.OCR.Rectangle 구조체의 위치, 너비 및 높이를 포함하는 문자열입니다.

연산자

operator ==(Rectangle, Rectangle)

두 Aspose.OCR.Rectangle 구조체가 동일한 위치와 크기를 가지는지 테스트합니다.

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

매개변수

left Rectangle

동등 연산자 왼쪽에 있는 Aspose.OCR.Rectangle 구조체입니다.

right Rectangle

동등 연산자 오른쪽에 있는 Aspose.OCR.Rectangle 구조체입니다.

반환

bool

이 연산자는 두 Aspose.OCR.Rectangle 구조체가 Aspose.OCR.Rectangle.X, Aspose.OCR.Rectangle.Y, Aspose.OCR.Rectangle.Width 및 Aspose.OCR.Rectangle.Height 속성이 동일하면 true를 반환합니다.

operator !=(Rectangle, Rectangle)

두 Aspose.OCR.Rectangle 구조체가 위치 또는 크기에서 다르지 않은지 테스트합니다.

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

매개변수

left Rectangle

부등 연산자 왼쪽에 있는 Aspose.OCR.Rectangle 구조체입니다.

right Rectangle

부등 연산자 오른쪽에 있는 Aspose.OCR.Rectangle 구조체입니다.

반환

bool

이 연산자는 두 Aspose.OCR.Rectangle 구조체의 Aspose.OCR.Rectangle.X, Aspose.OCR.Rectangle.Y, Aspose.OCR.Rectangle.Width 또는 Aspose.OCR.Rectangle.Height 속성 중 하나라도 다르면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

 한국어