| CanvasGradientMesh Class | 
 Inheritance Hierarchy
Inheritance HierarchyNamespace: Microsoft.Graphics.Canvas.Geometry
 Syntax
Syntaxpublic sealed class CanvasGradientMesh : IDisposable
The CanvasGradientMesh type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | CanvasGradientMesh | Initializes a new instance of the CanvasGradientMesh class. | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | Device | Gets the device associated with this CanvasGradientMesh. | 
|  | Patches | Gets the array of patches that comprise this gradient mesh. | 
 Methods
Methods| Name | Description | |
|---|---|---|
|   | CreateCoonsPatch | Creates a CanvasGradientMesh using Coons patch semantics. | 
|   | CreateTensorPatch | Creates a CanvasGradientMesh using tensor patch semantics. | 
|  | Dispose | Releases all resources used by the CanvasGradientMesh. | 
|  | GetBounds(ICanvasResourceCreator) | Gets the bounds of this CanvasGradientMesh. | 
|  | GetBounds(ICanvasResourceCreator, Matrix3x2) | Gets the bounds of this CanvasGradientMesh. | 
 Remarks
RemarksA gradient mesh is comprised of some number of patches. A patch is an area defined by four bezier curves, and colors to describe the corners. See CanvasGradientMeshPatch for more information.
Although it isn't terribly useful, a gradient mesh can have zero patches.
When using Direct2D interop, this Win2D class corresponds to the Direct2D interface ID2D1GradientMesh.
 See Also
See Also