Struct PointF
ชื่อพื้นที่: Aspose.Imaging การประกอบ: Aspose.Imaging.dll (25.4.0)
แสดงให้เห็นถึงคู่คําสั่งของจุด floating x- และ y-coordinates ซึ่งกําหนดจุดในแถบสองมิติ
public struct PointF
อนุญาโตตุลาการ
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
จุดหมายเลข(เฟอร์รี่, เฟอร์รี่)
เริ่มต้นตัวอย่างใหม่ของโครงสร้าง Aspose.Imaging.PointF ด้วยโค้ดที่ระบุ
public PointF(float x, float y)
Parameters
x
float
ตําแหน่งแนวนอนของจุด
y
float
ตําแหน่งแนวตั้งของจุด
Properties
Empty
ได้รับตัวอย่างใหม่ของโครงสร้าง Aspose.Imaging.PointF ซึ่งมีค่า Aspose.Imaging.PointF.X และ Aspose.Imaging.PointF.Y ที่ตั้งค่าเป็นศูนย์
public static PointF Empty { get; }
คุณสมบัติมูลค่า
IsEmpty
ได้รับค่าแสดงให้เห็นว่า Aspose.Imaging.PointF นี้จะว่างเปล่าหรือไม่
[JsonIgnore]
public bool IsEmpty { get; }
คุณสมบัติมูลค่า
X
รับหรือตั้งค่าการ koordinate x ของ Aspose.Imaging.PointF นี้
public float X { get; set; }
คุณสมบัติมูลค่า
Y
รับหรือตั้งค่า y-koordinate ของ Aspose.Imaging.PointF นี้
public float Y { get; set; }
คุณสมบัติมูลค่า
Methods
Add(PointF, ขนาด)
แปลง Aspose.Imaging.PointF โดย Aspose.Imaging.Size ที่ระบุ
public static PointF Add(PointF point, Size size)
Parameters
point
PointF
The Aspose.Imaging.PointF เพื่อแปล
size
Size
Aspose.Imaging.Size ที่ระบุหมายเลขที่จะเพิ่มลงในโค้ดของ point'.
Returns
การแปลของ Aspose.Imaging.PointF
Add(PointF, SizeF)
แปลง Aspose.Imaging.PointF โดย Aspose.Imaging.SizeF ที่กําหนด
public static PointF Add(PointF point, SizeF size)
Parameters
point
PointF
The Aspose.Imaging.PointF เพื่อแปล
size
SizeF
Aspose.Imaging.SizeF ซึ่งระบุหมายเลขที่จะเพิ่มลงในโค้ดของ point'.
Returns
การแปลของ Aspose.Imaging.PointF
Equals(วัตถุ)
คําอธิบายว่า Aspose.Imaging.PointF นี้มีโค้ดเดียวกันกับ System.Object ที่ระบุไว้หรือไม่
public override bool Equals(object obj)
Parameters
obj
object
ระบบ.วัตถุในการทดสอบ
Returns
วิธีการนี้จะกลับมาถูกต้องหาก obj’ เป็น Aspose.Imaging.PointF และมีโค้ดเดียวกันกับ Aspose.Imaging.Point นี้
GetHashCode()
กลับรหัส hash สําหรับโครงสร้าง Aspose.Imaging.PointF นี้
public override int GetHashCode()
Returns
ค่ารวมที่ระบุค่า hash สําหรับโครงสร้าง Aspose.Imaging.PointF นี้
Subtract(PointF, ขนาด)
แปลง Aspose.Imaging.PointF โดยเชิงลบของขนาดที่ระบุ
public static PointF Subtract(PointF point, Size size)
Parameters
point
PointF
The Aspose.Imaging.PointF เพื่อแปล
size
Size
Aspose.Imaging.Size ซึ่งระบุหมายเลขที่ควรจะถอดออกจากโค้ดของ point'.
Returns
การแปลของ Aspose.Imaging.PointF
Subtract(PointF, SizeF)
แปลง Aspose.Imaging.PointF โดยเชิงลบของขนาดที่ระบุ
public static PointF Subtract(PointF point, SizeF size)
Parameters
point
PointF
The Aspose.Imaging.PointF เพื่อแปล
size
SizeF
Aspose.Imaging.SizeF ซึ่งระบุหมายเลขที่ต้องถอดออกจากโค้ดของ point'.
Returns
การแปลของ Aspose.Imaging.PointF
ToString()
แปลง Aspose.Imaging.PointF นี้เป็นเส้นที่สามารถอ่านได้จากมนุษย์
public override string ToString()
Returns
ลวดที่นําเสนอ Aspose.Imaging.PointF นี้
Operators
ผู้ประกอบการ +(PointF, ขนาด)
การแปล Aspose.Imaging.PointF โดย Aspose.Imaging.Size
public static PointF operator +(PointF point, Size size)
Parameters
point
PointF
The Aspose.Imaging.PointF เพื่อแปล
size
Size
A Aspose.Imaging.Size ซึ่งระบุคู่ของหมายเลขที่จะเพิ่มลงในโค้ดของ point'.
Returns
กลับการแปล Aspose.Imaging.PointF
ผู้ประกอบการ +(PointF, SizeF)
การแปล Aspose.Imaging.PointF โดย Aspose.Imaging.SizeF ที่ระบุไว้
public static PointF operator +(PointF point, SizeF size)
Parameters
point
PointF
The Aspose.Imaging.PointF เพื่อแปล
size
SizeF
Aspose.Imaging.SizeF ซึ่งระบุตัวเลขที่จะเพิ่มไปกับ x- และ y-coordinates ของ point'.
Returns
การแปลของ Aspose.Imaging.PointF
ผู้ประกอบการ =(PointF, PointF)
การเปรียบเทียบสองโครงสร้าง Aspose.Imaging.PointF ผลลัพธ์ระบุว่าค่าของ Aspose.Imaging.PointF.X และ Aspose.Imaging.PointF.Y คุณสมบัติของสองโครงสร้าง Aspose.Imaging.PointF เป็นเท่ากันหรือไม่
public static bool operator ==(PointF point1, PointF point2)
Parameters
point1
PointF
การเปรียบเทียบ Aspose.Imaging.PointF เป็นครั้งแรก
point2
PointF
คู่ Aspose.Imaging.PointF เพื่อเปรียบเทียบ
Returns
จริงถ้า Aspose.Imaging.PointF.X และ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.Imaging.PointF.Y หมายเลขของ Aspose.
ผู้ประกอบการ !=(PointF, PointF)
เรียกประสงค์ว่าการกําหนดค่าของจุดที่ระบุไม่เท่าเทียมกันหรือไม่
public static bool operator !=(PointF point1, PointF point2)
Parameters
point1
PointF
การเปรียบเทียบ Aspose.Imaging.PointF เป็นครั้งแรก
point2
PointF
คู่ Aspose.Imaging.PointF เพื่อเปรียบเทียบ
Returns
ความจริงในการระบุค่า Aspose.Imaging.PointF.X และ Aspose.Imaging.PointF.Y ของ point1’ และ
point2’ ไม่เหมือนกัน อย่างไรก็ตามความผิดพลาด
ผู้ประกอบการ -(PointF, ขนาด)
แปลง Aspose.Imaging.PointF โดยเชิงลบของ Aspose.Imaging.Size
public static PointF operator -(PointF point, Size size)
Parameters
point
PointF
A Aspose.Imaging.PointF เพื่อแปล
size
Size
A Aspose.Imaging.Size ซึ่งระบุตัวเลขที่ต้องถอดออกจาก x- และ y-coordinates ของ point'.
Returns
การแปลของ Aspose.Imaging.PointF
ผู้ประกอบการ -(PointF, SizeF)
แปลง Aspose.Imaging.PointF โดย negative ของ Aspose.Imaging.SizeF ที่ระบุ
public static PointF operator -(PointF point, SizeF size)
Parameters
point
PointF
The Aspose.Imaging.PointF เพื่อแปล
size
SizeF
Aspose.Imaging.SizeF ซึ่งระบุหมายเลขที่ต้องถอดออกจากโค้ดของ point'.
Returns
การแปลของ Aspose.Imaging.PointF