Interface IGDIPlus.IGPHatchBrush
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: SignalLabBasicPkg
Unit: IGDIPlus
Inherits: IGPBrush
Contents |
Syntax
Delphi:
type IGPHatchBrush = interface( IGPBrush )
Summary
Interface to a TGPHatchBrush object.
Description
Defines interface to a TGPHatchBrush object.
This TGPHatchBrush class defines a rectangular brush with a hatch style, a foreground color, and a background color. There are six hatch styles. The foreground color defines the color of the hatch lines; the background color defines the color over which the hatch lines are drawn. Remarks Hatches are applied to shape interiors in the device space. As a result, they maintain their appearance in device space and are unaffected by current transformations in the graphics context. Such brushes are also called non-scalable brushes. Hatches are aligned at the upper-left corner of the display device. When the graphics engine uses a TGPHatchBrush object to paint a shape, it first transforms the shape to device space before applying the hatch to the interiors. Hatches are always tiled to paint the interiors.
Properties
- HatchStyle - The hatch style of this hatch brush.
- ForegroundColor - The foreground color of this hatch brush.
- BackgroundColor - The background color of this hatch brush.
Methods
- procedure SetHatchStyleProp(style : TGPHatchStyle)
- function SetHatchStyle(style : TGPHatchStyle) : TGPHatchBrush - Sets the hatch style of this hatch brush.
- function GetHatchStyle() : TGPHatchStyle - Returns the hatch style of this hatch brush.
- procedure SetForegroundColorProp(color : TGPColor)
- function SetForegroundColor(color : TGPColor) : TGPHatchBrush - Sets the foreground color of this hatch brush.
- function GetForegroundColor() : TGPColor - Returns the foreground color of this hatch brush.
- procedure SetBackgroundColorProp(color : TGPColor)
- function SetBackgroundColor(color : TGPColor) : TGPHatchBrush - Sets the background color of this hatch brush.
- function GetBackgroundColor() : TGPColor - Returns the background color of this hatch brush.