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(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(インタ)
Aspose.Imaging.Point 構造の新しい例を、総値によって指定されたコーディネートを使用して開始します。
public Point(int dw)
Parameters
dw
int
32 ビット インテラーで、新しいポイントのコーディネートを指定します。
Properties
Empty
Aspose.Imaging.Point.X と Aspose.Imaging.Point.Y の値をゼロに設定する Aspose.Imaging.Point.Y の構造の新しい例を取得します。
public static Point Empty { get; }
不動産価値
IsEmpty
この Aspose.Imaging.Point が空いているかどうかを示す値が表示されます。
[JsonIgnore]
public bool IsEmpty { get; }
不動産価値
X
この Aspose.Imaging.Point の x コーディネートを取得または設定します。
public int X { get; set; }
不動産価値
Y
この Aspose.Imaging.Point の y コーディネートを取得または設定します。
public int Y { get; set; }
不動産価値
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
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
Aspose.Imaging.Point この方法を変換します。
Equals(対象)
この Aspose.Imaging.Point が指定された System.Object と同様のコーディネートが含まれているかどうかを指定します。
public override bool Equals(object obj)
Parameters
obj
object
システム・オブジェクト テスト
Returns
もし 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
この例のハッシュコードは、ハッシュテーブルのようなハッシュアルゴリズムやデータ構造で使用するのに適しています。
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 コーディネートを補償する金額。
dy
int
Yコーディネートを補償する金額。
Round(ポイントF)
指定された Aspose.Imaging.PointF を Aspose.Imaging.Point オブジェクトに変換し、 Aspose.Imaging.Point 値を最寄りの全体に回転します。
public static Point Round(PointF point)
Parameters
point
PointF
Aspose.Imaging.PointF を変換します。
Returns
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
Aspose.Imaging.Point は、サプトラクション作業の結果です。
ToLong()
このポイントを単一の長い値に変換し、XとYの座標を高と低のビットに含みます。
public long ToLong()
Returns
ポイントオブジェクトは長い値に包まれています。
ToString()
この Aspose.Imaging.Point を人間が読むシートに変換します。
public override string ToString()
Returns
このインスタンスを代表するシステムストリングです。
Truncate(ポイントF)
指定した Aspose.Imaging.PointF を Aspose.Imaging.Point に変換し、 Aspose.Imaging.Point の値をトランチャットします。
public static Point Truncate(PointF point)
Parameters
point
PointF
Aspose.Imaging.PointF を変換します。
Returns
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 は、コードクラス=paramref=ポイントのコーディネートに追加する数字のカップルを指定します。
Returns
翻訳する Aspose.Imaging.Point
オペレーター=(ポイント、ポイント)
結果は、 Aspose.Imaging.Point.X と Aspose.Imaging.Point.Y の 2 つの Aspose.Imaging.Point オブジェクトの属性が同じかどうかを指定します。
public static bool operator ==(Point point1, Point point2)
Parameters
point1
Point
比較するための最初の Aspose.Imaging.Point。
point2
Point
比較するための2番目の Aspose.Imaging.Point
Returns
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
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
Aspose.Imaging.PointF は変換の結果です。
オペレーター !=(ポイント、ポイント)
結果は、 Aspose.Imaging.Point.X または Aspose.Imaging.Point.Y の 2 つの Aspose.Imaging.Point オブジェクトの特性が異なるかどうかを指定します。
public static bool operator !=(Point point1, Point point2)
Parameters
point1
Point
比較するための最初の Aspose.Imaging.Point。
point2
Point
比較するための2番目の Aspose.Imaging.Point
Returns
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
A Aspose.Imaging.Size that specifies the pair of numbers to subtract from the coordinates of point’. コードクラス=パラムレフ=ポイントのコーディネートから引き下げる数字のカップルを指定します。
Returns
Aspose.Imaging.Point 構造は、特定の Aspose.Imaging.Size 構造のネガティブによって翻訳されます。