ICompositionSurface ICompositionSurface ICompositionSurface ICompositionSurface Interface


Represents the content of a surface that can be used to paint the bounds of a SpriteVisual. All surface types that can be used to paint a SpriteVisual must implement this interface. The following classes implement this interface and can be set as content of a SpriteVisual (using a CompositionSurfaceBrush):

Class Details
CompositionDrawingSurface Fixed sized surface that can be rendered with an image using LoadedImageSurface or custom drawing using Win2D (orD2D) or a video using MediaPlayer.
CompositionVirtualDrawingSurface Similar to CompositionDrawingSurface, except the surface is sparsely allocated.Typically used when you need to define a large amount of content but only expects a small portion of content to be visible at a given time. The content can be rendered using Win2D (or D2D).
public : interface ICompositionSurface
struct winrt::Windows::UI::Composition::ICompositionSurface
public interface ICompositionSurface
Public Interface ICompositionSurface

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)