Partager via


GDI Plus HatchBrush Foundation Class

The gpHatchBrush class provides a brush object which fills with a hatch pattern.

Category

Reporting

Default Catalog

Visual FoxPro Catalog\Foundation Classes\Output\GDIplus

Class

gpHatchBrush

Base Class

Custom

Class Library

_GDIPLUS.vcx

Parent Class

gpBrush (GDI Plus Brush Foundation Class)

Remarks

The following table lists public properties and methods added by this class to its parent class, gpBrush. This class also implements the Init method.

Properties and methods

Description

BackgroundColor Property

Specifies the color of the space between hatch lines, as an integer defining an ARGB value.

Default: Empty.

Create Method

Creates a hatchbrush object.

Syntax: ? THIS.Create(tnStyle[, tvForeColor[, tvBackColor]])

Return Values: Logical, representing success or failure.

Parameters: 

tnStyle, required, the hatch pattern or style to be used. Use a constant as specified in the GDIPLUS_HatchStyle_* constant set.

tvForeColor, optional, an integer or gpColor object representing a color value for the brush forecolor (hatch lines).

tvBackColor, optional, an integer or gpColor object representing a color value for the brush backcolor (space between the hatch lines).

ForegroundColor Property

Specifies the color of the hatch lines, as an integer defining an ARGB value.

Default: Empty.

HatchStyle Property

Specifies the hatch style, or pattern. Use a constant as specified in the GDIPLUS_HatchStyle_* constant set.

Default: 0 (GDIPLUS_HatchStyle_Horizontal).

Init Method

Constructs a hatchbrush object during initialization if passed appropriate arguments.

Syntax: CREATEOBJECT("gpHatchBrush"[,tnStyle[, tvForeColor[, tvBackColor]]])

Return Values: Logical, representing success or failure. If the method fails, the object does not instantiate.

Parameters: 

tnStyle, required if immediate creation of the object is requested, representing the hatch pattern or style to be used. Use a constant as specified in the GDIPLUS_HatchStyle_* constant set.

tvForeColor, optional, an integer or gpColor object representing a color value for the brush forecolor (hatchlines).

tvBackColor, optional, an integer or gpColor object representing a color value for the brush backcolor (space between the hatchlines).

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

GDI Plus API Wrapper Foundation Classes