---
UID: NF:d2d1_3.ID2D1DeviceContext2.DrawGradientMesh
title: ID2D1DeviceContext2::DrawGradientMesh (d2d1_3.h)
description: Renders a given gradient mesh to the target.
old-location: direct2d\id2d1devicecontext2_drawgradientmesh.htm
tech.root: Direct2D
ms.assetid: e3ea0930-2e7c-8e28-eda0-7dcb0b1cccc8
ms.date: 12/05/2018
ms.keywords: DrawGradientMesh, DrawGradientMesh method [Direct2D], DrawGradientMesh method [Direct2D],ID2D1DeviceContext2 interface, ID2D1DeviceContext2 interface [Direct2D],DrawGradientMesh method, ID2D1DeviceContext2.DrawGradientMesh, ID2D1DeviceContext2::DrawGradientMesh, d2d1_3/ID2D1DeviceContext2::DrawGradientMesh, direct2d.id2d1devicecontext2_drawgradientmesh
f1_keywords:
- d2d1_3/ID2D1DeviceContext2.DrawGradientMesh
dev_langs:
- c++
req.header: d2d1_3.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows 10 [desktop apps \| UWP apps]
req.target-min-winversvr: Windows Server 2016 [desktop apps \| UWP apps]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: D2d1.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- D2d1.dll
api_name:
- ID2D1DeviceContext2.DrawGradientMesh
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID2D1DeviceContext2::DrawGradientMesh


## -description


Renders a given gradient mesh to the target.


## -parameters




### -param gradientMesh [in]

Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/d2d1_3/nn-d2d1_3-id2d1gradientmesh">ID2D1GradientMesh</a>*</b>

The gradient mesh to be rendered.


## -returns



This method does not return a value.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d2d1_3/nn-d2d1_3-id2d1devicecontext2">ID2D1DeviceContext2</a>
 

 

