operator= method

Assigns the color values of the sample.

Syntax

DWORD retVal = object.operator=(val);

Parameters

  • val [in]
    Type: const DWORD

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

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.