GdipCreatePathGradientfunction
Creates a **PathGradientBrush** object based on an array of points.
Syntax
FUNCTION GdipCreatePathGradient (BYVAL points AS CONST GpPointF PTR, BYVAL count AS INT_, BYVAL wrapMode AS GpWrapMode, BYVAL polyGradient AS GpPathGradient PTR PTR) AS GpStatus
Also documented as
GdipCreatePathGradientI — one description covers them all.Parameters
| Name | Description | |
|---|---|---|
points | Pointer to an array of points that specifies the boundary path of the path gradient brush. | |
count | [in] Integer that specifies the number of elements in the points array. | |
wrapMode | [in] Element of the WrapMode enumeration that specifies how areas painted with the path gradient brush will be tiled. The default value is WrapModeClamp. | |
polyGradient | [out] Pointer to a variable that receives a pointer to the new PathGradientBrush object. |
Description
Creates a PathGradientBrush object based on an array of points.
Example
' // Define triangle points DIM points(0 TO 2) AS GpPointF = {(0, 0), (100, 0), (50, 100)} ' // Create a gradient brush DIM brush AS GpPathGradient PTR hStatus = GdipCreatePathGradient(@points(0), 3, WrapModeClamp, @brush)
Reference
- Defined in AfxNova/AfxGdiPlus.bi:2236
- Documented in Graphics/GdiPlus Flat Api/GdiPlusPathGradientBrush.md
- Topic: GdiPlusPathGradientBrush