---
UID: NE:d2d1effects.D2D1_BITMAPSOURCE_ALPHA_MODE
title: D2D1_BITMAPSOURCE_ALPHA_MODE (d2d1effects.h)
description: Specifies the alpha mode of the output of the Bitmap source effect.
old-location: direct2d\d2d1_bitmapsource_alpha_mode.htm
tech.root: Direct2D
ms.assetid: 2DC16975-3ABF-4880-9F62-2EE55FE604F6
ms.date: 12/05/2018
ms.keywords: D2D1_BITMAPSOURCE_ALPHA_MODE, D2D1_BITMAPSOURCE_ALPHA_MODE enumeration [Direct2D], D2D1_BITMAPSOURCE_ALPHA_MODE_PREMULTIPLIED, D2D1_BITMAPSOURCE_ALPHA_MODE_STRAIGHT, d2d1effects/D2D1_BITMAPSOURCE_ALPHA_MODE, d2d1effects/D2D1_BITMAPSOURCE_ALPHA_MODE_PREMULTIPLIED, d2d1effects/D2D1_BITMAPSOURCE_ALPHA_MODE_STRAIGHT, direct2d.d2d1_bitmapsource_alpha_mode
f1_keywords:
- d2d1effects/D2D1_BITMAPSOURCE_ALPHA_MODE
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_BITMAPSOURCE_ALPHA_MODE
targetos: Windows
req.typenames: D2D1_BITMAPSOURCE_ALPHA_MODE
req.redist: 
ms.custom: 19H1
---

# D2D1_BITMAPSOURCE_ALPHA_MODE enumeration


## -description


Specifies the alpha mode of the output of the <a href="https://docs.microsoft.com/windows/desktop/Direct2D/bitmap-source">Bitmap source effect</a>.


## -enum-fields




### -field D2D1_BITMAPSOURCE_ALPHA_MODE_PREMULTIPLIED

The effect output uses premultiplied alpha.


### -field D2D1_BITMAPSOURCE_ALPHA_MODE_STRAIGHT

The effect output uses straight alpha.


### -field D2D1_BITMAPSOURCE_ALPHA_MODE_FORCE_DWORD



