Enum Gamma
Specifies which gamma is used for interpolation.
public enum Gamma
Fields
Linear = 1
Interpolation is performed in the linear-gamma color space.
StandardRgb = 0
Interpolation is performed in the standard RGB (sRGB) gamma.
Remarks
Interpolating in a linear gamma space (D2D1_GAMMA_1_0) can avoid changes in perceived brightness caused by the effect of gamma correction in spaces where the gamma is not 1.0, such as the default sRGB color space, where the gamma is 2.2. For an example of the differences between these two blending modes, consider the following illustration, which shows two gradients, each of which blends from red to blue to green:
The first gradient is interpolated linearly in the space of the render target (sRGB in this case), and one can see the dark bands between each color. The second gradient uses a gamma-correct linear interpolation, and thus does not exhibit the same variations in brightness.