---
UID: NF:d2d1_1.ID2D1ImageBrush.SetImage
title: ID2D1ImageBrush::SetImage (d2d1_1.h)
description: Sets the image associated with the provided image brush.
old-location: direct2d\id2d1imagebrush_setimage.htm
tech.root: Direct2D
ms.assetid: 2d9bfb45-ea4f-44b0-aa29-0cae86768270
ms.date: 12/05/2018
ms.keywords: ID2D1ImageBrush interface [Direct2D],SetImage method, ID2D1ImageBrush.SetImage, ID2D1ImageBrush::SetImage, SetImage, SetImage method [Direct2D], SetImage method [Direct2D],ID2D1ImageBrush interface, d2d1_1/ID2D1ImageBrush::SetImage, direct2d.id2d1imagebrush_setimage
f1_keywords:
- d2d1_1/ID2D1ImageBrush.SetImage
dev_langs:
- c++
req.header: d2d1_1.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows 8 and Platform Update for Windows 7 [desktop apps \| UWP apps]
req.target-min-winversvr: Windows Server 2012 and Platform Update for Windows Server 2008 R2 [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:
- ID2D1ImageBrush.SetImage
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID2D1ImageBrush::SetImage


## -description


Sets the image associated with the provided image brush.


## -parameters




### -param image [in]

Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/d2d1/nn-d2d1-id2d1image">ID2D1Image</a>*</b>

The image to be associated with the image brush.


## -returns



This method does not return a value.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d2d1_1/nn-d2d1_1-id2d1imagebrush">ID2D1ImageBrush</a>
 

 

