Share via


IXRGradientBrush::GetColorInterpolationMode (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetColorInterpolationMode(
    XRColorInterpolationMode* pColorInterpolationMode
) = 0;

Parameters

  • pColorInterpolationMode
    [out] Pointer to an 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 pColorInterpolationMode 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::SetColorInterpolationMode