GetColorKey method

Retrieves the surface's color key value.

Syntax


HRESULT retVal = object.GetColorKey(pColorKey);

Parameters

pColorKey

Type: DXSAMPLE

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

 

 

Show: