Export (0) Print
Expand All

GDI Plus API Wrapper Foundation Classes

Visual Studio 2005

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.

Class Description

GDI Plus Base Foundation Class

The abstract base class for all other _GDIPLUS classes. Provides some basic utility methods.

GDI Plus Bitmap Foundation Class

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.

GDI Plus Brush Foundation Class

The abstract base class for all Brush classes (for example, the gpSolidBrush and gpHatchBrush classes).

GDI Plus Color Foundation Class

Encapsulates a GDI+ color, consisting of 4 positive integers (0..255) for red, green, blue and alpha components.

GDI Plus Font Foundation Class

Defines a particular format for text, including font face, size, and style attributes.

GDI Plus FontFamily Foundation Class

Designates attributes shared by a group of related fonts.

GDI Plus Graphics Foundation Class

Encapsulates a GDI+ drawing surface. Provides methods for drawing on a window or other canvas.

GDI Plus HatchBrush Foundation Class

A brush object which fills with a hatch pattern.

GDI Plus Image Foundation Class

Encapsulates a GDI+ image, and serves as the base class for specific image types (for example, the gpBitmap class).

GDI Plus Object Foundation Class

The abstract base class for all GDI+ objects. Provides management of GDI+ handles and the outcome of GDI+ operations.

GDI Plus Pen Foundation Class

A pen object, which is used to draw lines and curves.

GDI Plus Point Foundation Class

Encapsulates an ordered pair of x- and y-coordinates that defines a point in a two-dimensional plane.

GDI Plus Rectangle Foundation Class

Encapsulates a set of four numbers that represent the location and size of a rectangle.

GDI Plus Size Foundation Class

Stores an ordered pair of numbers, typically the width and height of a rectangle.

GDI Plus SolidBrush Foundation Class

A brush object which fills with a solid color.

GDI Plus StringFormat Foundation Class

Object which encapsulates text layout information (such as alignment and line spacing) and display manipulations (such as ellipsis insertion and national digit substitution).

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.

Community Additions

ADD
Show:
© 2014 Microsoft