Microsoft DirectX 9.0

IDxtKey::put_Similarity

The put_Similarity method specifies the range of color data that becomes transparent. At higher values, a wider range of similar colors is transparent. This property applies only when the key type is DXTKEY_RGB or DXTKEY_NONRED.

Syntax

HRESULT put_Similarity(
    int newVal
);

Parameters

newVal

[in] Specifies the similarity value. The valid range is from 0 to 100.

Return Values

Returns S_OK or an error code.

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