Microsoft DirectX 9.0

IDxtKey::get_RGB

The get_RGB method retrieves the RGB color on which to key. This property applies only when the key type is DXTKEY_RGB.

Syntax

HRESULT get_RGB(
    DWORD *pVal
);

Parameters

pVal

[out, retval] Pointer to a variable that receives the color. The returned value is a hexadecimal number with the format 0xRRGGBB, where RR is the red value, GG is the green value, and BB is the blue value.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
E_POINTER NULL pointer argument
S_OK Success

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also