Expand Minimize

D3D11_VIDEO_COLOR_RGBA structure

Specifies an RGB color value.

Syntax


typedef struct D3D11_VIDEO_COLOR_RGBA {
  float R;
  float G;
  float B;
  float A;
} D3D11_VIDEO_COLOR_RGBA;

Members

R

The red value.

G

The green value.

B

The blue value.

A

The alpha value. Values range from 0 (transparent) to 1 (opaque).

Remarks

The RGB values have a nominal range of [0...1]. For an RGB format with n bits per channel, the value of each color component is calculated as follows:

val = f * ((1 << n)-1)

For example, for RGB-32 (8 bits per channel), val = BYTE(f * 255.0).

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft