Struct Point

Struct Point

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

그것은 완전한 x- 및 y 조정의 정렬 된 쌍을 나타내며, 이는 2 차원 평면에서 포인트를 정의합니다.

public struct Point

상속 회원들

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

Constructors

Point(이트, 이트)

지정된 좌표와 함께 Aspose.Imaging.Point 구조의 새로운 예를 시작합니다.

public Point(int x, int y)

Parameters

x int

지점의 수평 위치.

y int

포인트의 수직 위치.

Point(Size)

Aspose.Imaging.Point 구조의 새로운 예를 Aspose.Imaging.Size 구조에서 시작합니다.

public Point(Size size)

Parameters

size Size

새로운 포인트 코디네이션을 포함합니다.

Point(이트)

Aspose.Imaging.Point 구조의 새로운 예를 시작하여 전체 값에 의해 지정된 좌표를 사용합니다.

public Point(int dw)

Parameters

dw int

새로운 포인트에 대한 좌표를 지정하는 32 비트 전체.

Properties

Empty

Aspose.Imaging.Point.X 및 Aspose.Imaging.Point.Y 값을 0으로 설정하는 Aspose.Imaging.Point 구조의 새로운 예를 얻습니다.

public static Point Empty { get; }

부동산 가치

Point

IsEmpty

이 Aspose.Imaging.Point이 텅 비어 있는지 여부를 나타내는 값을 얻습니다.

[JsonIgnore]
public bool IsEmpty { get; }

부동산 가치

bool

X

이 Aspose.Imaging.Point의 x 코디네이트를 얻거나 설정합니다.

public int X { get; set; }

부동산 가치

int

Y

이 Aspose.Imaging.Point의 y-koordinate를 얻거나 설정합니다.

public int Y { get; set; }

부동산 가치

int

Methods

Add(포인트, 크기)

지정된 Aspose.Imaging.Size를 지정된 Aspose.Imaging.Point에 추가합니다.

public static Point Add(Point point, Size size)

Parameters

point Point

Aspose.Imaging.Point 를 추가합니다.

size Size

Aspose.Imaging.Size는 point"에 추가합니다.

Returns

Point

Aspose.Imaging.Point는 추가 작업의 결과입니다.

Ceiling(포인트F)

지정된 Aspose.Imaging.PointF를 Aspose.Imaging.Point로 변환하여 Aspose.Imaging.PointF의 값을 다음보다 높은 전체 값으로 회전합니다.

public static Point Ceiling(PointF point)

Parameters

point PointF

변환하기 위해 Aspose.Imaging.PointF를 사용합니다.

Returns

Point

Aspose.Imaging.Point 이 방법이 변환됩니다.

Equals(객체)

이 Aspose.Imaging.Point이 지정된 System.Object과 동일한 코디네이트를 포함하는지 여부를 지정합니다.

public override bool Equals(object obj)

Parameters

obj object

시험할 수 있는 시스템.Object

Returns

bool

사실 obj’는 Aspose.Imaging.Point이며 이 Aspose.Imaging.Point와 동일한 코디네이트를 가지고 있다면.

FromLong(밖으로 나가, 밖으로 나가, 밖으로 나가)

긴 개체에 포장된 포인트 개체를 분리하여 X와 Y int 값을 분리합니다.

public static void FromLong(long packedPoint, out int x, out int y)

Parameters

packedPoint long

포인트 개체는 오랜 가치로 포장되어 있습니다.

x int

포장된 포인트 X 값에서 추출된 값.

y int

포장된 포인트 Y 값에서 추출된 값.

GetHashCode()

이 Aspose.Imaging.Point에 대한 해시 코드를 반환합니다.

public override int GetHashCode()

Returns

int

이 예제에 대한 해시 코드, 해시 테이블과 같은 해시 알고리즘 및 데이터 구조에서 사용하기에 적합합니다.

Offset(Point)

이 Aspose.Imaging.Point을 지정된 Aspose.Imaging.Point로 번역합니다.

public void Offset(Point point)

Parameters

point Point

이 Aspose.Imaging.Point을 보상하는 데 사용된 Aspose.Imaging.Point.

Offset(이트, 이트)

이 Aspose.Imaging.Point을 지정된 금액으로 번역합니다.

public void Offset(int dx, int dy)

Parameters

dx int

x 코디네이터를 보상하는 금액입니다.

dy int

요금제 요금제 요금제 요금제 요금제 요금제

Round(포인트F)

지정된 Aspose.Imaging.PointF를 Aspose.Imaging.Point 개체로 변환하여 Aspose.Imaging.Point 값을 가장 가까운 전체로 회전합니다.

public static Point Round(PointF point)

Parameters

point PointF

변환하기 위해 Aspose.Imaging.PointF를 사용합니다.

Returns

Point

Aspose.Imaging.Point 이 방법이 변환됩니다.

Subtract(포인트, 크기)

지정된 Aspose.Imaging.Size에서 지정된 Aspose.Imaging.Point의 추출 결과를 반환합니다.

public static Point Subtract(Point point, Size size)

Parameters

point Point

Aspose.Imaging.Point 에서 추출해야 합니다.

size Size

Aspose.Imaging.Size는 point"에서 추출합니다.

Returns

Point

Aspose.Imaging.Point 는 소프트레이션 작업의 결과입니다.

ToLong()

이 포인트를 단일 긴 값으로 변환하여 X 및 Y 좌표를 높은 및 낮은 비트로 포함합니다.

public long ToLong()

Returns

long

포인트 개체는 오랜 가치로 포장되어 있습니다.

ToString()

이 Aspose.Imaging.Point를 인간 읽을 수 있는 스트립으로 변환합니다.

public override string ToString()

Returns

string

이 기회를 대표하는 시스템.String입니다.

Truncate(포인트F)

지정된 Aspose.Imaging.PointF를 Aspose.Imaging.Point로 변환하여 Aspose.Imaging.Point의 값을 흔들어 놓습니다.

public static Point Truncate(PointF point)

Parameters

point PointF

변환하기 위해 Aspose.Imaging.PointF를 사용합니다.

Returns

Point

Aspose.Imaging.Point 이 방법이 변환됩니다.

Operators

운영자 +(포인트, 크기)

Aspose.Imaging.Point를 특정 Aspose.Imaging.Size로 번역합니다.

public static Point operator +(Point point, Size size)

Parameters

point Point

번역하기 위한 Aspose.Imaging.Point

size Size

Aspose.Imaging.Size는 point"의 좌표에 추가해야 할 숫자 쌍을 지정합니다.

Returns

Point

번역된 Aspose.Imaging.Point

운영자 =(포인트, 포인트)

결과는 두 개의 Aspose.Imaging.Point 개체의 Aspose.Imaging.Point.X 및 Aspose.Imaging.Point.Y 속성의 가치가 동일한지 여부를 지정합니다.

public static bool operator ==(Point point1, Point point2)

Parameters

point1 Point

비교할 수 있는 첫 번째 Aspose.Imaging.Point

point2 Point

두 번째 Aspose.Imaging.Point 비교할 수 있습니다.

Returns

bool

Aspose.Imaging.Point.X 및 Aspose.Imaging.Point.Y의 point1’ 및 point2’ 값이 동일한 경우 사실; 그렇지 않으면 가짜입니다.

명확한 운영자 크기(Point)

지정된 Aspose.Imaging.Point 구조를 Aspose.Imaging.Size 구조로 변환합니다.

public static explicit operator Size(Point point)

Parameters

point Point

변환하기 위한 Aspose.Imaging.Point

Returns

Size

Aspose.Imaging.Size는 변환의 결과입니다.

잠재적 인 운영자 PointF(Point)

지정된 Aspose.Imaging.Point 구조를 Aspose.Imaging.PointF 구조로 변환합니다.

public static implicit operator PointF(Point point)

Parameters

point Point

변환하기 위한 Aspose.Imaging.Point

Returns

PointF

변환에서 발생하는 Aspose.Imaging.PointF.

운영자 !=(포인트, 포인트)

결과는 Aspose.Imaging.Point.X 또는 Aspose.Imaging.Point.Y의 두 개의 Aspose.Imaging.Point 개체의 속성이 불평등한지 여부를 지정합니다.

public static bool operator !=(Point point1, Point point2)

Parameters

point1 Point

비교할 수 있는 첫 번째 Aspose.Imaging.Point

point2 Point

두 번째 Aspose.Imaging.Point 비교할 수 있습니다.

Returns

bool

사실은 Aspose.Imaging.Point.X 속성 또는 Aspose.Imaging.Point.Y 속성의 값이 point1’ 및 point2’의 차이가 있는 경우; 그렇지 않으면 가짜입니다.

운영자 -(포인트, 크기)

Aspose.Imaging.Point를 특정 Aspose.Imaging.Size의 부정적인 점으로 번역합니다.

public static Point operator -(Point point, Size size)

Parameters

point Point

번역하기 위한 Aspose.Imaging.Point

size Size

Aspose.Imaging.Size는 point"의 좌표에서 추출 할 수있는 숫자의 쌍을 지정합니다.

Returns

Point

Aspose.Imaging.Point 구조는 특정 Aspose.Imaging.Size 구조의 부정적인 구조로 번역됩니다.

 한국어