DXScaleSamplePercent function

Scales the red, green, blue, and alpha channels of a sample by a specified percent.

Syntax

DWORD DXScaleSamplePercent(
  _In_ DWORD src,
  _In_ float percent
);

Parameters

  • src [in]
    A value of type DWORD that specifies relative red, green, blue, and alpha intensities.

  • percent [in]
    A value of type float that specifies the percent by which the sample is scaled. This value should be between 0 and 1.

Return value

Returns a value of type DWORD containing the scaled color values of the sample.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Dxhelper.h

See also

Reference

DXScaleSample

DXScalePremultArray