Partager via


GDI Plus Object Foundation Class

The gpObject class is the abstract base class for all GDI+ objects. It provides management of GDI+ handles and the outcome of GDI+ operations.

Category

Reporting

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Output\GDIplus

Class

gpObject

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.

Properties and methods

Description

GetHandle Method

Returns the underlying GDI+ handle for this object.

Syntax: ? THIS.GetHandle()

Return Values: Integer value representing handle. Returns null (.NULL.) if an error occurs.

Parameters:  None.

GetStatus Method

Returns the status code from the last GDI+ function called on this object. See the GP_STATUS_* defined constants.

Syntax: ? THIS.GetStatus()

Return Values: Integer value representing status code.

Parameters:  None.

SetHandle Method

Sets the native GDI+ handle if this has been obtained from an outside source.

Syntax: ? THIS.SetHandle(tvNewHandle,tlOwnsHandle)

Return Values: : Logical, representing success or failure.

Parameters: 

tvHandle, required, the handle to assign.

tlOwnsHandle, optional, defaults to false (.F.). Indicates whether this object owns the handle and can delete it when this object performs other cleanup.

Win32LastError Property

Returns the last Windows error code if GetStatus returns GP_STATUS_Win32Error.

Default: 0.

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

GDI Plus API Wrapper Foundation Classes