Class IGDIPlus.TGPHatchBrush
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: TGPBrush
Contents |
Syntax
Delphi:
type TGPHatchBrush = class( TGPBrush, IGPHatchBrush )
C++ Builder:
class TGPHatchBrush : public TGPBrush
Visual C++ (MFC):
class CTGPHatchBrush : public CTGPBrush
C# (.NET):
public ref class TGPHatchBrush : Mitov.SignalLab.Brush
Summary
Defines a rectangular brush with a hatch style, a foreground color, and a background color.
Description
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.
Methods
Public
- procedure SetHatchStyleProp(style : TGPHatchStyle)
- function SetHatchStyle(style : TGPHatchStyle) : TGPHatchBrush
- function GetHatchStyle() : TGPHatchStyle
- procedure SetForegroundColorProp(color : TGPColor)
- function SetForegroundColor(color : TGPColor) : TGPHatchBrush
- function GetForegroundColor() : TGPColor
- procedure SetBackgroundColorProp(color : TGPColor)
- function SetBackgroundColor(color : TGPColor) : TGPHatchBrush
- function GetBackgroundColor() : TGPColor