ID2D1DeviceContext2::CreateGradientMesh method (d2d1_3.h)

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

[in] patches

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.

[out] gradientMesh

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

Requirement Value
Minimum supported client Windows 10 [desktop apps | UWP apps]
Minimum supported server Windows Server 2016 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1DeviceContext2