Converts an image assuming the original is not using premultiplied alpha into a premultiplied alpha version of the same image.
| Name | Description |
|---|---|
| PremultiplyAlpha (const Image&, ScratchImage&) | Converts an image assuming the original is not using premultiplied alpha into a premultiplied alpha version of the same image. |
| PremultiplyAlpha (const Image*, size_t, const TexMetadata&, ScratchImage&) | Converts an image assuming the original is not using premultiplied alpha into a premultiplied alpha version of the same image. |
This function does not operate directly on block compressed images. See Decompress and Compress.
This function is most useful for working with rendering that relies on premultiplied alpha blending (see DirectXTK).
CodePlex shows an example and blog links.