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

Minimum supported clientWindows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]
Minimum supported serverWindows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]
Headerd2d1effects.h
Libraryd2d1.lib, dxguid.lib

 

Related topics

ID2D1Effect

 

 

Show: