Compartilhar via


IXRGradientBrush::SetColorInterpolationMode (Compact 2013)

3/28/2014

This method sets an XRColorInterpolationMode enumerated type that specifies how the gradient's colors are interpolated.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetColorInterpolationMode(
    XRColorInterpolationMode ColorInterpolationMode
) = 0;

Parameters

  • ColorInterpolationMode
    [in] XRColorInterpolationMode enumerated type that specifies how the colors in a gradient are interpolated.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The ColorInterpolationMode value indicates whether the gradient pattern will use the sRGB color space or the scRGB color space.

A color space is a mapping of color components onto a three-dimensional geometric coordinate system. By using a standard predefined color space, you can enable accurate color mapping with less data overhead. The sRGB color space uses unsigned integers to represent the color values, whereas scRGB uses floating-point numeric values to represent the color values, which removes some limitations associated with sRGB.

.NET Framework Equivalent

System.Windows.Media.GradientBrush

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRGradientBrush
IXRGradientBrush::GetColorInterpolationMode