IXpsOMGradientBrush interface (xpsobjectmodel.h)
This interface describes a gradient that is made up of gradient stops. Classes that inherit from IXpsOMGradientBrush specify different ways of interpreting gradient stops.
IXpsOMGradientBrush is the base interface for the IXpsOMLinearGradientBrush and IXpsOMRadialGradientBrush interfaces.
Inheritance
The IXpsOMGradientBrush interface inherits from IXpsOMBrush. IXpsOMGradientBrush also has these types of members:
Methods
The IXpsOMGradientBrush interface has these methods.
IXpsOMGradientBrush::GetColorInterpolationMode Gets the gamma function to be used for color interpolation. |
IXpsOMGradientBrush::GetGradientStops Gets a pointer to an IXpsOMGradientStopCollection interface that contains the collection of IXpsOMGradientStop interfaces that define the gradient. |
IXpsOMGradientBrush::GetSpreadMethod Gets the XPS_SPREAD_METHOD value, which describes how the area outside of the gradient region will be rendered. |
IXpsOMGradientBrush::GetTransform Gets a pointer to the IXpsOMMatrixTransform interface that contains the resolved matrix transform for the brush. (IXpsOMGradientBrush.GetTransform) |
IXpsOMGradientBrush::GetTransformLocal Gets a pointer to the IXpsOMMatrixTransform interface that contains the local, unshared, resolved matrix transform for the brush. |
IXpsOMGradientBrush::GetTransformLookup Gets the name of the lookup key of the shared matrix transform interface that is to be used for the brush. |
IXpsOMGradientBrush::SetColorInterpolationMode Sets the XPS_COLOR_INTERPOLATION value, which describes the gamma function to be used for color interpolation. |
IXpsOMGradientBrush::SetSpreadMethod Sets the XPS_SPREAD_METHOD value, which describes how the area outside of the gradient region is to be rendered. |
IXpsOMGradientBrush::SetTransformLocal Sets the IXpsOMMatrixTransform interface pointer to a local, unshared matrix transform that is to be used for the brush. |
IXpsOMGradientBrush::SetTransformLookup Sets the name of the lookup key of a shared matrix transform that is to be used for the brush. |
Remarks
The methods of this interface define the basic parameters of a gradient. The gradient type, which can be linear or radial, determines how these parameters are applied.
As shown in the figure that follows, the start and end points of a linear gradient mark the end points of the gradient path. The gradient path is the straight line that connects the start and end points. The gradient region of a linear gradient consists of the area between the start and end points, including those points, and extends in both directions at a right angle to the gradient path. The spread area is the area outside the gradient region.
Gradient stops define the color at specific locations along the gradient path; the color is interpolated along the gradient path between the gradient stops, as shown in the following illustration.
![A figure that shows the terms used in a linear gradient](images/lineargradient1.png)
![A figure that shows the terms used in a radial gradient](images/radialgradient1.png)
![An illustration that shows examples of the spread method](images/xps_spread_method.png)
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | xpsobjectmodel.h |