D2D1_BLEND enumeration
Specifies how one of the color sources is to be derived and optionally specifies a preblend operation on the color source.
Syntax
typedef enum D2D1_BLEND { D2D1_BLEND_ZERO = 1, D2D1_BLEND_ONE = 2, D2D1_BLEND_SRC_COLOR = 3, D2D1_BLEND_INV_SRC_COLOR = 4, D2D1_BLEND_SRC_ALPHA = 5, D2D1_BLEND_INV_SRC_ALPHA = 6, D2D1_BLEND_DEST_ALPHA = 7, D2D1_BLEND_INV_DEST_ALPHA = 8, D2D1_BLEND_DEST_COLOR = 9, D2D1_BLEND_INV_DEST_COLOR = 10, D2D1_BLEND_SRC_ALPHA_SAT = 11, D2D1_BLEND_BLEND_FACTOR = 14, D2D1_BLEND_INV_BLEND_FACTOR = 15 } D2D1_BLEND;
Constants
- D2D1_BLEND_ZERO
-
The data source is black (0, 0, 0, 0). There is no preblend operation.
- D2D1_BLEND_ONE
-
The data source is white (1, 1, 1, 1). There is no preblend operation.
- D2D1_BLEND_SRC_COLOR
-
The data source is color data (RGB) from the second input of the blend transform. There is not a preblend operation.
- D2D1_BLEND_INV_SRC_COLOR
-
The data source is color data (RGB) from second input of the blend transform. The preblend operation inverts the data, generating 1 - RGB.
- D2D1_BLEND_SRC_ALPHA
-
The data source is alpha data (A) from second input of the blend transform. There is no preblend operation.
- D2D1_BLEND_INV_SRC_ALPHA
-
The data source is alpha data (A) from the second input of the blend transform. The preblend operation inverts the data, generating 1 - A.
- D2D1_BLEND_DEST_ALPHA
-
The data source is alpha data (A) from the first input of the blend transform. There is no preblend operation.
- D2D1_BLEND_INV_DEST_ALPHA
-
The data source is alpha data (A) from the first input of the blend transform. The preblend operation inverts the data, generating 1 - A.
- D2D1_BLEND_DEST_COLOR
-
The data source is color data from the first input of the blend transform. There is no preblend operation.
- D2D1_BLEND_INV_DEST_COLOR
-
The data source is color data from the first input of the blend transform. The preblend operation inverts the data, generating 1 - RGB.
- D2D1_BLEND_SRC_ALPHA_SAT
-
The data source is alpha data from the second input of the blend transform. The preblend operation clamps the data to 1 or less.
- D2D1_BLEND_BLEND_FACTOR
-
The data source is the blend factor. There is no preblend operation.
- D2D1_BLEND_INV_BLEND_FACTOR
-
The data source is the blend factor. The preblend operation inverts the blend factor, generating 1 - blend_factor.
Remarks
This enumeration has the same numeric values as D3D10_BLEND.
Requirements
|
Minimum supported client |
Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Type library |
|
See also