Struct Point
İsim alanı : Aspose.Imaging Toplantı: Aspose.Imaging.dll (25.4.0)
İki boyutlu bir planta bir nokta tanımlayan bütün x- ve y-koordinasyonlarının düzenli bir çiftini temsil eder.
public struct Point
mirasçı üyeleri
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
Point(int , int , int)
Aspose.Imaging.Point yapısının yeni bir örneği belirlenen koordinatlarla başlatılır.
public Point(int x, int y)
Parameters
x
int
Bu noktanın yatay pozisyonu.
y
int
Bu noktanın vertikal konumu.
Point(Size)
Aspose.Imaging.Point yapısının yeni bir örneğini Aspose.Imaging.Size yapısından başlatır.
public Point(Size size)
Parameters
size
Size
Yeni nokta koordinatları içerir.
Point(int ile)
Aspose.Imaging.Point yapısının yeni bir örneğini bir bütün değeri ile belirlenen koordinatları kullanarak başlatır.
public Point(int dw)
Parameters
dw
int
Yeni nokta için koordinatları belirleyen 32 bit bütünü.
Properties
Empty
Aspose.Imaging.Point.X ve Aspose.Imaging.Point.Y değerleri sıfır olarak ayarlanmış Aspose.Imaging.Point.Y yapısının yeni bir örneği alır.
public static Point Empty { get; }
Mülkiyet Değer
IsEmpty
Bu Aspose.Imaging.Point boş olup olmadığını gösteren bir değer alır.
[JsonIgnore]
public bool IsEmpty { get; }
Mülkiyet Değer
X
Bu Aspose.Imaging.Point’in x koordinatını alır veya ayarlar.
public int X { get; set; }
Mülkiyet Değer
Y
Bu Aspose.Imaging.Point’in y koordinatını alır veya ayarlar.
public int Y { get; set; }
Mülkiyet Değer
Methods
Add(boyut, boyut)
Belirlenen Aspose.Imaging.Size’yi belirlenen Aspose.Imaging.Point’e ekleyin.
public static Point Add(Point point, Size size)
Parameters
point
Point
Aspose.Imaging.Point eklemek için.
size
Size
Aspose.Imaging.Size noktasına eklemek için.
Returns
Aspose.Imaging.Point ekleme işlemi sonucudur.
Ceiling(PointF)
Belirlenen Aspose.Imaging.PointF’yi bir Aspose.Imaging.Point’e dönüştürür ve Aspose.Imaging.PointF değerlerini bir sonraki daha yüksek bütün değerlere döndürür.
public static Point Ceiling(PointF point)
Parameters
point
PointF
Aspose.Imaging.PointF ile dönüştürülür.
Returns
Aspose.Imaging.Point bu yöntemi dönüştürür.
Equals(nesne)
Bu Aspose.Imaging.Point’in belirtilen System.Object ile aynı koordinatları olup olmadığını belirler.
public override bool Equals(object obj)
Parameters
obj
object
test etmek için sistem.object.
Returns
Eğer obj’ bir Aspose.Imaging.Point ve bu Aspose.Imaging.Point ile aynı koordinatları varsa doğru.
FromLong(dışarı çık, dışarı çık, dışarı çık)
Bir nokta nesnesini, X ve Y int değerlerini ayırmak için uzun bir nesneye paketlenmiş bir nokta nesnesini oluşturun.
public static void FromLong(long packedPoint, out int x, out int y)
Parameters
packedPoint
long
Bir nokta nesnesi uzun bir değere paketlenmiştir.
x
int
Paketli Point X değerinden alınan değer.
y
int
Paketli nokta Y değerinden alınan değer.
GetHashCode()
Bu Aspose.Imaging.Point için bir hash kodu iade eder.
public override int GetHashCode()
Returns
Bu örnek için bir hash kodu, hash algoritmalarında ve bir hash tablosu gibi veri yapılarında kullanıma uygundur.
Offset(Point)
Bu Aspose.Imaging.Point’i belirtilen Aspose.Imaging.Point ile çevirir.
public void Offset(Point point)
Parameters
point
Point
Aspose.Imaging.Point bu Aspose.Imaging.Point telafi etmek için kullanılmıştır.
Offset(int , int , int)
Bu Aspose.Imaging.Point’i belirtilen miktarla çevirir.
public void Offset(int dx, int dy)
Parameters
dx
int
x-koordinasyonu telafi etmek için bir miktar.
dy
int
Y-koordinasyonu telafi etmek için bir miktar.
Round(PointF)
Belirlenen Aspose.Imaging.PointF’yi bir Aspose.Imaging.Point nesnesine dönüştürür ve Aspose.Imaging.Point değerlerini en yakın bütününe döndürür.
public static Point Round(PointF point)
Parameters
point
PointF
Aspose.Imaging.PointF ile dönüştürülür.
Returns
Aspose.Imaging.Point bu yöntemi dönüştürür.
Subtract(boyut, boyut)
Belirlenmiş Aspose.Imaging.Size’den belirlenmiş Aspose.Imaging.Point’ten çıkarma sonucu geri getirir.
public static Point Subtract(Point point, Size size)
Parameters
point
Point
Aspose.Imaging.Point’ten çıkarılmalıdır.
size
Size
Aspose.Imaging.Size, point’den aşağı çekilir.
Returns
Aspose.Imaging.Point, subtraksiyon işlemi sonucudur.
ToLong()
Bu noktayı, X ve Y koordinatlarını yüksek ve düşük bitlerde içeren tek bir uzun değer haline dönüştürün.
public long ToLong()
Returns
Bir nokta nesnesi uzun bir değere paketlenmiştir.
ToString()
Bu Aspose.Imaging.Point’i insan okunabilir bir çizgiye dönüştürür.
public override string ToString()
Returns
Bu istasyonu temsil eden bir sistem.String.
Truncate(PointF)
Belirlenen Aspose.Imaging.PointF’yi bir Aspose.Imaging.Point’e dönüştürür ve Aspose.Imaging.Point değerlerini kaydırır.
public static Point Truncate(PointF point)
Parameters
point
PointF
Aspose.Imaging.PointF ile dönüştürülür.
Returns
Aspose.Imaging.Point bu yöntemi dönüştürür.
Operators
Operatör +(boyut, boyut)
Bir Aspose.Imaging.Point’i belirli bir Aspose.Imaging.Size ile çevirir.
public static Point operator +(Point point, Size size)
Parameters
point
Point
Çeviri için Aspose.Imaging.Point
size
Size
Aspose.Imaging.Size, point’in koordinatlarına eklemek için sayı çiftini belirler.
Returns
Çevirilen Aspose.Imaging.Point
Operatör =(noktası , noktası)
İki Aspose.Imaging.Point nesnesini karşılaştırır. sonuç Aspose.Imaging.Point.X ve Aspose.Imaging.Point.Y özelliklerinin değerlerinin iki Aspose.Imaging.Point nesnesinin eşit olup olmadığını belirler.
public static bool operator ==(Point point1, Point point2)
Parameters
point1
Point
Bir ilk Aspose.Imaging.Point karşılaştırmak için.
point2
Point
Bir ikinci Aspose.Imaging.Point karşılaştırmak için.
Returns
Aspose.Imaging.Point.X ve Aspose.Imaging.Point.Y değerleri point1’ ve
point2’ eşit ise doğru; aksi takdirde, sahte.
Operatör Boyutları(Point)
Belirlenen Aspose.Imaging.Point yapısını bir Aspose.Imaging.Size yapısına dönüştürür.
public static explicit operator Size(Point point)
Parameters
point
Point
Aspose.Imaging.Point dönüştürülür.
Returns
Aspose.Imaging.Size bu dönüşümden kaynaklanır.
PointF Operatörü(Point)
Belirlenen Aspose.Imaging.Point yapısını Aspose.Imaging.PointF yapısına dönüştürür.
public static implicit operator PointF(Point point)
Parameters
point
Point
Aspose.Imaging.Point dönüştürülür.
Returns
Aspose.Imaging.PointF dönüşümünden kaynaklanmaktadır.
Operatör !=(noktası , noktası)
Sonuç, Aspose.Imaging.Point.X veya Aspose.Imaging.Point.Y özelliklerinin değerlerinin iki Aspose.Imaging.Point nesnesinin eşitsiz olup olmadığını belirler.
public static bool operator !=(Point point1, Point point2)
Parameters
point1
Point
Bir ilk Aspose.Imaging.Point karşılaştırmak için.
point2
Point
Bir ikinci Aspose.Imaging.Point karşılaştırmak için.
Returns
Aspose.Imaging.Point.X özelliklerinin değerleri veya point1’ ve
point2’ özelliklerinin Aspose.Imaging.Point.Y özelliklerinin değerleri farklı ise doğru; aksi takdirde, yanlış.
Operatör -(boyut, boyut)
Bir Aspose.Imaging.Point’i belirli bir Aspose.Imaging.Size’nin negatifine çevirir.
public static Point operator -(Point point, Size size)
Parameters
point
Point
Çeviri için Aspose.Imaging.Point
size
Size
Aspose.Imaging.Size, point’in koordinatlarından çekilecek sayı çiftini belirler.
Returns
Bir Aspose.Imaging.Point yapısı, belirli bir Aspose.Imaging.Size yapısının negatif tarafından tercüme edilir.