DXPreMultSample function

Multiplies the color components of a sample by its alpha value.

Syntax

DXPMSAMPLE DXPreMultSample(
  _In_ const DXSAMPLE &Src
);

Parameters

  • Src [in, ref]
    A DXSAMPLE object that specifies the sample to convert.

Return value

Returns an alpha premultiplied version of the source sample.

Remarks

This function is useful for switching a sample between ARGB32 and PMARGB32 pixel formats.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Dxhelper.h

See also

Reference

DXPMSAMPLE

DXSAMPLE