ID2D1GradientMesh::GetPatches method

Returns a subset of the patches that make up this gradient mesh.

Syntax


HRESULT GetPatches(
   UINT32                   startIndex,
   D2D1_GRADIENT_MESH_PATCH *patches,
   UINT32                   patchesCount
);

Parameters

startIndex

Type: UINT32

Index of the first patch to return.

patches

Type: D2D1_GRADIENT_MESH_PATCH*

A pointer to the array to be filled with the patch data.

patchesCount

Type: UINT32

The number of patches to be returned.

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

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1GradientMesh

 

 

Show: