Share via


DXScalePremultArray function

Scales the red, green, blue, and alpha channels in an array of samples of type DXPMSAMPLE.

Syntax

void DXScalePremultArray(
  _Inout_ DXPMSAMPLE    *pBuffer,
  _In_    unsigned long cSamples,
  _In_    BYTE          Weight
);

Parameters

  • pBuffer [in, out]
    An array of variables of type DXPMSAMPLE that specifies the samples to be scaled. The size of the array is specified with cSamples. DXScalePremultArray modifies the contents of this array.

  • cSamples [in]
    A value of type unsigned long that specifies the number of samples in pBuffer.

  • Weight [in]
    A value of type BYTE that specifies the relative amount by which the samples will be scaled.

Return value

This function does not return a value.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Dxhelper.h

See also

Reference

DXScaleSamplePercent

DXScaleSample