The gpBase class is the abstract base class for all other _GDIPLUS classes and provides some basic utility methods.
Category | Reporting |
---|---|
Default Catalog |
VisualВ FoxProВ Catalog\FoundationВ Classes\Output\GDIplus |
Class |
gpBase |
Base Class |
Custom |
Class Library |
_GDIPLUS.vcx |
Parent Class |
Custom (Custom Object) |
Remarks
The following table lists public properties and methods added by this class to its parent class, Custom.
Properties and methods | Description |
---|---|
AllowModalMessages Property |
Determines whether the class is allowed to display modal dialog boxes to provide user feedback.
Default
Remarks: Affects the UI that error handler presents when QuietOnError is false. If AllowModalMessages= |
AppName Property |
Application name for use in user feedback.
Default " |
ClearErrors Method |
Resets the object's error status.
Syntax:
Return Values: None Parameters:В None. |
Clone Method |
Create a new object as an exact copy of an existing object.
Syntax:
Return Values: None Parameters:В toClone, required, object to make this object a clone of. Remarks: This function has no meaning in the GpBase class. It is implemented in most subclasses. For objects that wrap an underlying GDI+ object, the underlying object is cloned as well. |
GetErrorStatus Method |
Indicates whether an error has occurred.
Syntax:
Return Values: Logical. Parameters:В None.
Remarks: Returns True ( |
GetLastErrorMessage Method |
Provides information about the last error that occurred.
Syntax:
Return Values: String. cErrorMessage is the text of the last error to occur. Parameters:В None.
Remarks: The value of cErrorMessage is only valid when GetErrorStatus() returns True ( |
GUIDToString Method |
Converts GUID or CLSID from binary form to human-readable string representation.
Syntax:
Return Values: String, in standard Parameters:В tqQUID is the GUID or CLSID to be converted. |
IgnoreErrors Property |
Indicates whether errors should halt processing.
Default
|
MakeGdipArrayF Method |
Converts numeric values in a Visual FoxPro array to a binary string, representing a one- or two-dimensional array of float (single-precision) values, suitable for passing directly to native GDI or GDI+ functions.
Syntax:
Return Values: Array represented in a string. Each value takes four bytes. The total length of the string is thus ( Parameters:В taArray, required, is an array of number values. Must have at least tnCols. tnCols, optional, is the number of columns to convert. Defaults to the number of values in the array. tnFirstCol, optional, is the first column number to start the conversion. Defaults to 1. |
MakeGdipArrayFFromCursor Method |
Converts numeric values in a Visual FoxPro cursor to a binary string, representing a one- or two-dimensional array of float (single-precision) values, suitable for passing directly to native GDI or GDI+ functions.
Syntax:
Return Values: Array represented in a string. Each value takes four bytes. The total length of the string.is thus Parameters:В tcAlias, required, is the alias of a cursor. Must have at least tnCols fields. tnCols, required, is the number of columns the array must have. At least tnCols expressions must be specified in the following parameters. tcExpr1, required, is the expression for the first column (usually a field name). tcExpr2, required if tnCols is >=2, is the expression for the second column (usually a field name). tcExpr3, required if tnCols is >=3, is the expression for the third column (usually a field name). tcExpr4, required if tnCols is >=4, is the expression for the fourth column (usually a field name). tcExpr5, required if tnCols is >=5 is the expression for the fifth column (usually a field name). tcExpr6, required if tnCols is >=6 is the expression for the sixth column (usually a field name). tcExpr7, required if tnCols is >=7 is the expression for the seventh column (usually a field name). tcExpr8, required if tnCols >= 8 is the expression for the eighth column (usually a field name). |
MakeGdipPointF Method |
Creates GDI+ PointF structure as string, from separate x,y parameters.
Syntax:
Return Values: 8-byte string representing two float values. Returns null ( Parameters:В tX, required, numeric, the X coordinate of the point. tY, required, numeric, the Y coordinate of the point. |
MakeGdipRectF Method |
Creates GDI+ RectF structure as string, from separate x,y,w,h parameters.
Syntax:
Return Values: 16-byte string representing four float values. Returns null ( Parameters:В tX, required, numeric, the X coordinate of the point. tY, required, numeric, the Y coordinate of the point. tW, required, numeric, the Width value (horizontal dimension). tH, required, numeric, the Height value (vertical dimension). |
MakeGdipSizeF Method |
Creates GDI+ SizeF structure as string, from separate x and y parameters.
Syntax:
Return Values: 8-byte string representing two float values. Returns null ( Parameters:В tW, required, numeric, the Width value (horizontal dimension). tH, required, numeric, the Height value (vertical dimension). |
ObjFactory Method |
Internal function to create _GDIPLUS objects. Used primarily by _GDIPLUS-derived objects' methods that return object values.
Syntax:
Return Values: The created object. Returns null ( Parameters:В
tcContext, string, the context of the object creation, usually a value in the form
tcClassName, string, the name of the class to instantiate. Always one of the base _GDIPLUS classes (such as
Remarks:В This function along with ObjFactoryHook() can be used to change the classes used by the GDI+ foundation classes. Refer to the |
ObjFactoryHook Method |
Allows modifications to the class that will be created by ObjFactory().
Syntax:
Return Values: none. Parameters:В tcContext, string, context value passed to ObjFactory(). rcClassName, string, the class that will be created. Assign a value to this parameter to change the class that will be instantiated. rcClassLibrary, string, the default class library in which the class to be created should be found.
rcModule, string, the module (.app, .dll or .exe file). By default will be an empty string ( |
QuietOnError Property |
If True (
Default
|
StringToGUID Method |
Converts a human-readable string representation of a GUID or CLSID to binary form.
Syntax:
Return Values: qQUID is the GUID or CLSID as a 16-byte varbinary value. Returns null (
Parameters:В
tcString is a human-readable GUID or CLSID in standard |