CanvasGradientMesh Class |
Namespace: Microsoft.Graphics.Canvas.Geometry
public sealed class CanvasGradientMesh : IDisposable
The CanvasGradientMesh type exposes the following members.
Name | Description | |
---|---|---|
CanvasGradientMesh | Initializes a new instance of the CanvasGradientMesh class. |
Name | Description | |
---|---|---|
Device | Gets the device associated with this CanvasGradientMesh. | |
Patches | Gets the array of patches that comprise this gradient mesh. |
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. |
A 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.