次の方法で共有


IDCompositionFloodEffect::SetColor method

Sets the color and opacity of the bitmap.

Syntax

HRESULT SetColor(
  [in, ref] const D2D1_VECTOR_4F &color
);

Parameters

  • color [in, ref]
    Type: const D2D1_VECTOR_4F

    The color and opacity of the bitmap. The individual values for each channel are of type FLOAT, unbounded and unitless. The RGBA values for each channel range from 0 to 1.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

Dcomp.h

Library

Dcomp.lib

DLL

Dcomp.dll

See also

IDCompositionFloodEffect