---
UID: NE:d2d1effects.D2D1_CHANNEL_SELECTOR
title: D2D1_CHANNEL_SELECTOR (d2d1effects.h)
description: Specifies the color channel the Displacement map effectextracts the intensity from and uses it to spatially displace the image in the X or Y direction.
old-location: direct2d\d2d1_channel_selector.htm
tech.root: Direct2D
ms.assetid: 92BC07F7-4CB5-487E-9AFB-255C8EF1C6BA
ms.date: 12/05/2018
ms.keywords: D2D1_CHANNEL_SELECTOR, D2D1_CHANNEL_SELECTOR enumeration [Direct2D], D2D1_CHANNEL_SELECTOR_A, D2D1_CHANNEL_SELECTOR_B, D2D1_CHANNEL_SELECTOR_G, D2D1_CHANNEL_SELECTOR_R, d2d1effects/D2D1_CHANNEL_SELECTOR, d2d1effects/D2D1_CHANNEL_SELECTOR_A, d2d1effects/D2D1_CHANNEL_SELECTOR_B, d2d1effects/D2D1_CHANNEL_SELECTOR_G, d2d1effects/D2D1_CHANNEL_SELECTOR_R, direct2d.d2d1_channel_selector
f1_keywords:
- d2d1effects/D2D1_CHANNEL_SELECTOR
dev_langs:
- c++
req.header: d2d1effects.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
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: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- HeaderDef
api_location:
- d2d1effects.h
api_name:
- D2D1_CHANNEL_SELECTOR
targetos: Windows
req.typenames: D2D1_CHANNEL_SELECTOR
req.redist: 
ms.custom: 19H1
---

# D2D1_CHANNEL_SELECTOR enumeration


## -description


Specifies the color channel the <a href="https://docs.microsoft.com/windows/desktop/Direct2D/displacement-map">Displacement map effect</a>extracts the intensity from and uses it to spatially displace the image in the X or Y direction.


## -enum-fields




### -field D2D1_CHANNEL_SELECTOR_R

The effect extracts the intensity output from the red channel.


### -field D2D1_CHANNEL_SELECTOR_G

The effect extracts the intensity output from the green channel.


### -field D2D1_CHANNEL_SELECTOR_B

The effect extracts the intensity output from the blue channel.


### -field D2D1_CHANNEL_SELECTOR_A

The effect extracts the intensity output from the alpha channel.


### -field D2D1_CHANNEL_SELECTOR_FORCE_DWORD



