The gpPoint class encapsulates an ordered pair of x- and y-coordinates that defines a point in a two-dimensional plane.
Category | Reporting |
---|---|
Default Catalog |
VisualВ FoxProВ Catalog\FoundationВ Classes\Output\GDIplus |
Class |
gpPoint |
Base Class |
Custom |
Class Library |
_GDIPLUS.vcx |
Parent Class |
gpBase (GDI Plus Base Foundation Class) |
Remarks
The following table lists public properties and methods added by this class to its parent class, gpBase. This class also implements the Clone and Init methods.
Properties and methods | Description |
---|---|
Clone Method |
Clones a point object.
Syntax:
Return Values: Logical, representing success or failure. Parameters:В toGpPoint, required, the gpPoint-based object to clone. |
Create Method |
Creates a point object from specified coordinates.
Syntax:
Return Values: Logical, representing success or failure. Parameters:В tX, required, the X coordinate for the point to create. tY, required, the Y coordinate for the point to create. |
GdipPoint Property |
String representing the GDI+ Point structure (composed of two 32-bit integers). Default: Empty. |
GdipPointF Property |
String representing the GDI+ PointF structure (composed of two 32-bit single-precision float values). Default: Empty. |
Init Method |
Constructs a Point object during initialization if passed appropriate arguments.
Syntax:
Return Values: Logical, representing success or failure. If the method fails, the object does not instantiate. Parameters:В tX, required if immediate creation of the object is requested, represents the X coordinate for the point. tY, required if immediate creation of the object is requested, represents the Y coordinate for the point. |
Set Method |
Sets a point object from specified coordinates.
Syntax:
Return Values: Logical, representing success or failure. Parameters:В tX, required, the X coordinate for the point to set. tY, required, the Y coordinate for the point to set. |
X Property |
The X-coordinate of the point.
Default:
|
Y Property |
The Y-coordinate of the point.
Default:
|