System.Types.TSmallPoint.Create
Delphi
constructor Create(P : TSmallPoint); overload;
constructor Create(const X, Y : Word); overload;
constructor Create(const X, Y : SmallInt); overload;
C++
static TSmallPoint Create(const short x, const short y) _ALWAYS_INLINE {
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
constructor function |
public | System.Types.pas SystemTypes.h |
System.Types | TSmallPoint |
Beschreibung
Erstellt ein TSmallPoint-Objekt.
Mit Create wird ein neues TSmallPoint-Objekt erzeugt und initialisiert, wobei jede Koordinate ein 16-Bit-Integer ist. X gibt die horizontale Koordinate und Y die vertikale Koordinate des Punktes an.
Hiweis: X und Y sind des Typs SmallInt. Es gibt auch eine andere Überladung mit Word-Parametern.