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 |
Related topics
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for