DXGI_RGBA structure

The structure represents a color value with alpha, which is used for transparency.

Syntax


typedef struct _DXGI_RGBA {
  float r;
  float g;
  float b;
  float a;
} DXGI_RGBA;

Members

r

Floating-point value that specifies the red component of a color. This value generally is in the range from 0.0 through 1.0. A value of 0.0 indicates the complete absence of the red component, while a value of 1.0 indicates that red is fully present.

g

Floating-point value that specifies the green component of a color. This value generally is in the range from 0.0 through 1.0. A value of 0.0 indicates the complete absence of the green component, while a value of 1.0 indicates that green is fully present.

b

Floating-point value that specifies the blue component of a color. This value generally is in the range from 0.0 through 1.0. A value of 0.0 indicates the complete absence of the blue component, while a value of 1.0 indicates that blue is fully present.

a

Floating-point value that specifies the alpha component of a color. This value generally is in the range from 0.0 through 1.0. A value of 0.0 indicates fully transparent, while a value of 1.0 indicates fully opaque.

Remarks

The DXGItype.h header type-defines DXGI_RGBA in the following way:



typedef D3DCOLORVALUE DXGI_RGBA;


You can use DXGI_RGBA with IDXGISwapChain1::SetBackgroundColor, IDXGISwapChain1::GetBackgroundColor, and DXGI_ALPHA_MODE.

Requirements

Minimum supported client

Windows 8 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

DXGItype.h

See also

D3DCOLORVALUE

 

 

Community Additions

ADD
Show:
© 2014 Microsoft