GDI Plus API Wrapper Foundation Classes
The GDI Plus API Wrapper Foundation class library, _GDIPLUS.vcx, contains a collection of classes that wrap GDI+ Flat API functionality for use in Visual FoxPro. You can use these classes to add GDI+ features to forms and reports.
_GDIPLUS.vcx Class Library
Class | Description |
---|---|
The abstract base class for all other _GDIPLUS classes. Provides some basic utility methods. |
|
Encapsulates a GDI+ bitmap, which consists of the pixel data for a graphics image and its attributes. A Bitmap object is an object used to work with images defined by pixel data. |
|
The abstract base class for all Brush classes (for example, the gpSolidBrush and gpHatchBrush classes). |
|
Encapsulates a GDI+ color, consisting of 4 positive integers (0..255) for red, green, blue and alpha components. |
|
Defines a particular format for text, including font face, size, and style attributes. |
|
Designates attributes shared by a group of related fonts. |
|
Encapsulates a GDI+ drawing surface. Provides methods for drawing on a window or other canvas. |
|
A brush object which fills with a hatch pattern. |
|
Encapsulates a GDI+ image, and serves as the base class for specific image types (for example, the gpBitmap class). |
|
The abstract base class for all GDI+ objects. Provides management of GDI+ handles and the outcome of GDI+ operations. |
|
A pen object, which is used to draw lines and curves. |
|
Encapsulates an ordered pair of x- and y-coordinates that defines a point in a two-dimensional plane. |
|
Encapsulates a set of four numbers that represent the location and size of a rectangle. |
|
Stores an ordered pair of numbers, typically the width and height of a rectangle. |
|
A brush object which fills with a solid color. |
|
Object which encapsulates text layout information (such as alignment and line spacing) and display manipulations (such as ellipsis insertion and national digit substitution). |
Remarks
Microsoft Windows GDI+ exposes a flat application programming interface (API) that consists of about 600 functions, which are implemented in Gdiplus.dll and declared in Gdiplusflat.h. These functions are described in the MSDN Library GDI+ Flat API reference topic.
The classes in this Visual FoxPro Library have names that correspond roughly to wrapper classes that perform the same function in the .NET Framework, so you can find additional helpful information and examples by reading material covering the equivalent .NET classes. For example, to learn about gpHatchBrush, you can read about the .NET HatchBrush class.
When you use GDI+ functions, you usually display the results on a target drawing surface, often referred to as a device, or canvas. You specify your target drawing surface by providing the GpGraphics object with a handle previously assigned to this surface, or the means to obtain such a handle. When you are manipulating screen displays, you can create this handle from a window handle, such as a form Window Manipulation Routines. When you are creating report output, you can use the ReportListener's GDIPlusGraphics Property.
See Also
Reference
Visual FoxPro Foundation Classes A-Z
ReportListener Object
Concepts
Guidelines for Using Visual FoxPro Foundation Classes
Using GDI+ in Reports