Premultiply effect

Use this effect to convert an image from unpremultiplied alpha to premultiplied alpha. The effect replaces each input pixel P = {R, G, B, A} with P' = {R*A, G*A, B*A, A} in the output.

This effect has no properties.

The CLSID for this effect is CLSID_D2D1Premultiply.

Output bitmap

The output bitmap size is the same as the input bitmap size.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]
Minimum supported server Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]
Header d2d1effects.h
Library d2d1.lib, dxguid.lib

 

ID2D1Effect