Click or drag to resize
CanvasComposition Class
[Win10_10586] Methods for using Win2D with Windows.UI.Composition.
Inheritance Hierarchy
SystemObject
  Microsoft.Graphics.Canvas.UI.CompositionCanvasComposition

Namespace:  Microsoft.Graphics.Canvas.UI.Composition
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static class CanvasComposition

The CanvasComposition type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateCompositionGraphicsDevice
[Win10_10586] Creates a CompositionGraphicsDevice associated with a CanvasDevice.
Public methodStatic memberCreateCompositionSurfaceForSwapChain
[Win10_10586] Creates an ICompositionSurface associated with a CanvasSwapChain.
Public methodStatic memberCreateDrawingSession(CompositionDrawingSurface)
[Win10_10586] Creates a CanvasDrawingSession for drawing to the given CompositionDrawingSurface.
Public methodStatic memberCreateDrawingSession(CompositionDrawingSurface, Rect)
[Win10_10586] Creates a CanvasDrawingSession for updating a region of the given CompositionDrawingSurface.
Public methodStatic memberCreateDrawingSession(CompositionDrawingSurface, Rect, Single)
[Win10_10586] Creates a CanvasDrawingSession for updating a region of the given CompositionDrawingSurface, using a custom DPI setting.
Public methodStatic memberGetCanvasDevice
[Win10_10586] Gets the CanvasDevice associated with the given CompositionGraphicsDevice.
Public methodStatic memberResize
[Win10_10586] Resizes the given CompositionDrawingSurface.
Public methodStatic memberSetCanvasDevice
[Win10_10586] Sets the CanvasDevice associated with the given CompositionGraphicsDevice.
Top
Remarks

This API is only available when running on Windows 10 build 10586 (released November 2015) or greater.

See Also