DXBASESAMPLE method

Constructs a DXBASESAMPLE object with members initialized to the values specified in a DWORD.

Syntax

object.DXBASESAMPLE(val);

Parameters

  • val [in]
    Type: const DWORD

    Value of type DWORD that specifies the colors to use for this sample.

Return value

This method does not return a value.

Remarks

A DWORD consists of four bytes of data. The first byte specifies the intensity of the alpha channel. The second byte specifies the intensity of the red channel. The third byte specifies the intensity of the green channel. The fourth byte specifies the intensity of the blue channel. For example, the hexadecimal value (0xFFFF0000) specifies an opaque red with no green or blue components.