IDCompositionTexture::SetAlphaMode method (dcomp.h)

Important

Some information relates to a prerelease product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Informs the Desktop Window Manager (DWM) whether alpha pixels in the texture should be honored or ignored.

Syntax

HRESULT SetAlphaMode(
  DXGI_ALPHA_MODE alphaMode
);

Parameters

alphaMode

Type: _In_ DXGI_ALPHA_MODE

Indicates whether alpha pixels in the texture should be honored or ignored.

Value Meaning
DXGI_ALPHA_MODE_UNSPECIFIED The alpha channel isn't specified. This value has the same effect as DXGI_ALPHA_MODE_IGNORE.
DXGI_ALPHA_MODE_PREMULTIPLIED The color channels contain values that are premultiplied with the alpha channel.
DXGI_ALPHA_MODE_IGNORE The alpha channel should be ignored, and the bitmap should be rendered opaquely.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Header dcomp.h

See also