D2D1_BLEND enumeration (d2d1effectauthor.h)

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_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_BLEND_ZERO
Value: 1
The data source is black (0, 0, 0, 0). There is no preblend operation.
D2D1_BLEND_ONE
Value: 2
The data source is white (1, 1, 1, 1). There is no preblend operation.
D2D1_BLEND_SRC_COLOR
Value: 3
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
Value: 4
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
Value: 5
The data source is alpha data (A) from second input of the blend transform. There is no preblend operation.
D2D1_BLEND_INV_SRC_ALPHA
Value: 6
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
Value: 7
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
Value: 8
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
Value: 9
The data source is color data from the first input of the blend transform. There is no preblend operation.
D2D1_BLEND_INV_DEST_COLOR
Value: 10
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
Value: 11
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
Value: 14
The data source is the blend factor. There is no preblend operation.
D2D1_BLEND_INV_BLEND_FACTOR
Value: 15
The data source is the blend factor. The preblend operation inverts the blend factor, generating 1 - blend_factor.
D2D1_BLEND_FORCE_DWORD
Value: 0xffffffff

Remarks

This enumeration has the same numeric values as D3D10_BLEND.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Header d2d1effectauthor.h

See also

D2D1_BLEND_DESCRIPTION

ID2D1BlendTransform