Struct Point

Struct Point

ชื่อพื้นที่: Aspose.Imaging การประกอบ: Aspose.Imaging.dll (25.4.0)

แสดงให้เห็นถึงคู่ที่กําหนดโดยรวมของ koordinates x- และ y ซึ่งกําหนดจุดในแถบสองมิติ

public struct Point

อนุญาโตตุลาการ

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

Constructors

Point(int, int)

เริ่มต้นตัวอย่างใหม่ของโครงสร้าง 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(int)

เริ่มต้นตัวอย่างใหม่ของโครงสร้าง Aspose.Imaging.Point โดยใช้โค้ดที่ระบุโดยค่ารวม

public Point(int dw)

Parameters

dw int

อินเทอร์เฟอร์ 32 บิตที่ระบุแนวโน้มสําหรับจุดใหม่

Properties

Empty

ได้รับตัวอย่างใหม่ของโครงสร้าง Aspose.Imaging.Point ซึ่งมีค่า Aspose.Imaging.Point.X และ Aspose.Imaging.Point.Y ที่ตั้งค่าเป็นศูนย์

public static Point Empty { get; }

คุณสมบัติมูลค่า

Point

IsEmpty

ได้รับค่าแสดงให้เห็นว่า Aspose.Imaging.Point นี้จะว่างเปล่าหรือไม่

[JsonIgnore]
public bool IsEmpty { get; }

คุณสมบัติมูลค่า

bool

X

รับหรือตั้งค่าการ koordinate x ของ Aspose.Imaging.Point นี้

public int X { get; set; }

คุณสมบัติมูลค่า

int

Y

รับหรือตั้งค่า y-koordinate ของ Aspose.Imaging.Point นี้

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(จุดหมายเลข)

แปลง 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

ระบบ.วัตถุในการทดสอบ

Returns

bool

จริงถ้า obj’ เป็น Aspose.Imaging.Point และมีโค้ดเดียวกันกับ Aspose.Imaging.Point นี้

FromLong(ระยะยาว, ออก int, ออก int)

ทําลายวัตถุจุดที่บรรจุลงในวัตถุยาวเพื่อแยกค่า X และ Y int

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

Parameters

packedPoint long

วัตถุจุดบรรจุในหนึ่งมูลค่ายาว

x int

หมายเลขที่ถอดออกจากค่า Point X ที่บรรจุ

y int

หมายเลขที่ถอดออกจากหมายเลขที่บรรจุ

GetHashCode()

กลับรหัส hash สําหรับ Aspose.Imaging.Point นี้

public override int GetHashCode()

Returns

int

รหัส hash สําหรับตัวอย่างนี้เหมาะสําหรับการใช้งานในอัลกอริทึม hashing และโครงสร้างข้อมูลเช่นตาราง hash

Offset(Point)

แปลง Aspose.Imaging.Point นี้โดย Aspose.Imaging.Point ที่ระบุไว้

public void Offset(Point point)

Parameters

point Point

Aspose.Imaging.Point ใช้เพื่อตอบแทน Aspose.Imaging.Point นี้

Offset(int, int)

แปลง Aspose.Imaging.Point นี้ตามจํานวนที่ระบุ

public void Offset(int dx, int dy)

Parameters

dx int

ค่าใช้จ่ายในการตอบสนองค่า X-Coordinate

dy int

ค่าใช้จ่ายในการคืนค่าค่าธรรมเนียม Y-Coordinate

Round(จุดหมายเลข)

แปลง 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

The Aspose.Imaging.Size to subtract from the point'.

Returns

Point

Aspose.Imaging.Point ซึ่งเป็นผลของกระบวนการยึด

ToLong()

แปลงจุดนี้เป็นมูลค่ายาวเดียวซึ่งประกอบด้วยโค้ด X และ Y ในบิตสูงและต่ํา

public long ToLong()

Returns

long

วัตถุจุดบรรจุในหนึ่งมูลค่ายาว

ToString()

แปลง Aspose.Imaging.Point นี้เป็น string ที่สามารถอ่านได้โดยมนุษย์

public override string ToString()

Returns

string

ระบบ String ซึ่งเป็นตัวแทนของ instance นี้

Truncate(จุดหมายเลข)

แปลง 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

The Aspose.Imaging.Point เพื่อแปล

size Size

A Aspose.Imaging.Size ซึ่งระบุคู่ของหมายเลขที่จะเพิ่มลงในโค้ดของ point'.

Returns

Point

การแปลของ Aspose.Imaging.Point

ผู้ประกอบการ =(จุด, จุด)

การเปรียบเทียบสองวัตถุ Aspose.Imaging.Point ผลลัพธ์ระบุว่าค่าของ 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

A second Aspose.Imaging.Point เพื่อเปรียบเทียบ

Returns

bool

เป็นจริงถ้าค่า Aspose.Imaging.Point.X และ Aspose.Imaging.Point.Y ของ point1’ และ point2’ เป็นเท่าเทียมกัน; ในทางอื่น ๆ, false.

ขนาดผู้ประกอบการที่ชัดเจน(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 ที่เกิดขึ้นจากการแปลง

ผู้ประกอบการแบบ implicit 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 ผลลัพธ์ระบุว่าค่าของ 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

A second 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

The Aspose.Imaging.Point เพื่อแปล

size Size

A Aspose.Imaging.Size ที่ระบุคู่ของตัวเลขที่จะสอดคล้องจากโค้ดของ point'.

Returns

Point

โครงสร้าง Aspose.Imaging.Point ซึ่งถูกแปลโดยเชิงลบของโครงสร้าง Aspose.Imaging.Size ที่กําหนด

 แบบไทย