description | ms.assetid | title | ms.topic | ms.date |
---|---|---|---|---|
Windows GDI+ exposes a flat API that consists of about 600 functions. These flat API functions are wrapped by the HatchBrush C++ class. |
c7d9e633-8c3d-4e77-811d-306cd785a7ad |
HatchBrush Functions |
article |
05/31/2018 |
Windows GDI+ exposes a flat API that consists of about 600 functions, which are implemented in Gdiplus.dll and declared in Gdiplusflat.h. The functions in the GDI+ flat API are wrapped by a collection of about 40 C++ classes. It is recommended that you do not directly call the functions in the flat API. Whenever you make calls to GDI+, you should do so by calling the methods and functions provided by the C++ wrappers. Microsoft Product Support Services will not provide support for code that calls the flat API directly. For more information on using these wrapper methods, see GDI+ Flat API.
The following flat API functions are wrapped by the HatchBrush C++ class.
Flat function | Wrapper method | Remarks |
---|---|---|
GpStatus WINGDIPAPI GdipCreateHatchBrush(GpHatchStyle hatchstyle, ARGB forecol, ARGB backcol, GpHatch **brush) |
HatchBrush::HatchBrush(IN HatchStyle hatchStyle, IN const Color& foreColor, IN const Color& backColor = Color()) | Creates a HatchBrush object based on a hatch style, a foreground color, and a background color. |
GpStatus WINGDIPAPI GdipGetHatchStyle(GpHatch *brush, GpHatchStyle *hatchstyle) |
HatchStyle HatchBrush::GetHatchStyle() const | Gets the hatch style of this hatch brush. |
GpStatus WINGDIPAPI GdipGetHatchForegroundColor(GpHatch *brush, ARGB* forecol) |
Status HatchBrush::GetForegroundColor(OUT Color* color) const | Gets the foreground color of this hatch brush. |
GpStatus WINGDIPAPI GdipGetHatchBackgroundColor(GpHatch *brush, ARGB* backcol) |
Status HatchBrush::GetBackgroundColor(OUT Color *color) const | Gets the background color of this hatch brush. |