ID2D1DeviceContext2::CreateGradientMesh method
Creates a new ID2D1GradientMesh instance using the given array of patches.
Syntax
HRESULT CreateGradientMesh( [in] const D2D1_GRADIENT_MESH_PATCH *patches, UINT32 patchesCount, [out] ID2D1GradientMesh **gradientMesh );
Parameters
- patches [in]
-
Type: const D2D1_GRADIENT_MESH_PATCH*
A pointer to the array containing the patches to be used in this mesh.
- patchesCount
-
Type: UINT32
The number of patches in the patches argument to read.
- gradientMesh [out]
-
Type: ID2D1GradientMesh**
When this method returns, contains the address of a pointer to the new gradient mesh.
Return value
Type: HRESULT
S_OK if successful, otherwise a failure HRESULT.
Requirements
|
Minimum supported client |
Windows 10 [desktop apps | UWP apps] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows 10 Mobile |
|
Header |
|
|
DLL |
|
See also