Partager via


IXRGradientBrush::SetColorInterpolationMode (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRGradientBrush
IXRGradientBrush::GetColorInterpolationMode