GetColorKey method

Retrieves the surface's color key value.

Syntax

HRESULT retVal = object.GetColorKey(pColorKey);

Parameters

  • pColorKey
    Type: [DXSAMPLE](aa743764(v=vs.85).md)

    Pointer to the DXSAMPLE structure that indicates the color to treat as transparent.

Remarks

Some surface implementations do not allow color keys, so the method can return E_NOTIMPL.

See also

IDXSurface::SetColorKey