Click or drag to resize
CanvasGradientMesh Class
[Win10] A drawable set of bezier patches, consisting of interpolated colors.
Inheritance Hierarchy
SystemObject
  Microsoft.Graphics.Canvas.GeometryCanvasGradientMesh

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public sealed class CanvasGradientMesh : IDisposable

The CanvasGradientMesh type exposes the following members.

Constructors
  NameDescription
Public methodCanvasGradientMesh
Initializes a new instance of the CanvasGradientMesh class.
Top
Properties
  NameDescription
Public propertyDevice
Gets the device associated with this CanvasGradientMesh.
Public propertyPatches
Gets the array of patches that comprise this gradient mesh.
Top
Methods
  NameDescription
Public methodStatic memberCreateCoonsPatch
Creates a CanvasGradientMesh using Coons patch semantics.
Public methodStatic memberCreateTensorPatch
Creates a CanvasGradientMesh using tensor patch semantics.
Public methodDispose
Releases all resources used by the CanvasGradientMesh.
Public methodGetBounds(ICanvasResourceCreator)
Gets the bounds of this CanvasGradientMesh.
Public methodGetBounds(ICanvasResourceCreator, Matrix3x2)
Gets the bounds of this CanvasGradientMesh.
Top
Remarks

This API is available on Windows 10 (Universal Windows Platform) only. It is not supported on Windows 8.1 or Phone 8.1.

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.

See Also