Cross Fade effect

This effect combines two images by adding weighted pixels from input images. It has two inputs, named Destination and Source.

The cross fade formula is output = weight * Destination + (1 - weight) * Source.

The CLSID for this effect is CLSID_D2D1CrossFade.

Effect Properties

Display anme and index enumeration Type and default value Descripiton
WeightD2D1_CROSSFADE_PROP_WEIGHT
FLOAT0.5f
How much to weigh the source image color values versus the destination image. The minimum value is 0.0f (exclusively use the destination image to determine the output) and the maximum value is 1.0f (exclusively use the source image to determine the output).

Requirements

Minimum supported client Windows 10 [desktop apps | Windows Store apps]
Minimum supported server Windows 10 [desktop apps | Windows Store apps]
Header d2d1effects_2.h
Library d2d1.lib, dxguid.lib

ID2D1Effect