Compartir a través de


GDI Plus Point Foundation Class

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: ? THIS.Clone(toGpPoint)

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: THIS.Create(tX,tY)

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: CREATEOBJECT("gpPoint" [,tX,tY])

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: THIS.Set(tX,tY)

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:0.

Y Property

The Y-coordinate of the point.

Default:0.

See Also

Reference

Visual FoxPro Foundation Classes A-Z
GDI Plus API Wrapper Foundation Classes

Concepts

Guidelines for Using Visual FoxPro Foundation Classes