Partager via


IXRGradientBrush (Compact 2013)

3/28/2014

This is an abstract base class that describes a gradient pattern composed of gradient stops used to paint graphical objects.

Syntax

class IXRGradientBrush : public IXRBrush

Inheritance Hierarchy

IXRDependencyObject

    IXRBrush

        IXRGradientBrush

            IXRLinearGradientBrush

            IXRRadialGradientBrush

Methods

Method

Description

IXRGradientBrush::GetColorInterpolationMode

Retrieves an XRColorInterpolationMode enumerated type that specifies how the gradient's colors are interpolated.

IXRGradientBrush::GetGradientStops

Retrieves this brush's gradient stops.

IXRGradientBrush::GetMappingMode

Retrieves a value that specifies whether the positioning coordinates of this gradient brush are absolute or relative to the output area.

IXRGradientBrush::GetSpreadMethod

Retrieves the spread method used to determine how a gradient is drawn when it starts or ends inside the bounds of the target object.

IXRGradientBrush::SetColorInterpolationMode

Sets an XRColorInterpolationMode enumerated type that specifies how the gradient's colors are interpolated.

IXRGradientBrush::SetGradientStops

Sets this brush's gradient stops.

IXRGradientBrush::SetMappingMode

Sets a value that specifies whether the positioning coordinates of this gradient brush are absolute or relative to the output area.

IXRGradientBrush::SetSpreadMethod

Sets the spread method used to determine how a gradient is drawn when it starts or ends inside the bounds of the target object.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

If you create a class instance, use an IXRGradientBrushPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

.NET Framework Equivalent

System.Windows.Media.GradientBrush

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Visual Appearance