CompositionDrawingSurface CompositionDrawingSurface CompositionDrawingSurface CompositionDrawingSurface Class

Definition

A drawing surface for interoperation with Direct2D or Direct3D.

public : class CompositionDrawingSurface : CompositionObject, ICompositionDrawingSurface, ICompositionDrawingSurface2, ICompositionSurface
struct winrt::Windows::UI::Composition::CompositionDrawingSurface : CompositionObject, ICompositionDrawingSurface, ICompositionDrawingSurface2, ICompositionSurface
public class CompositionDrawingSurface : CompositionObject, ICompositionDrawingSurface, ICompositionDrawingSurface2, ICompositionSurface
Public Class CompositionDrawingSurface Inherits CompositionObject Implements ICompositionDrawingSurface, ICompositionDrawingSurface2, ICompositionSurface
Inheritance
CompositionDrawingSurfaceCompositionDrawingSurfaceCompositionDrawingSurfaceCompositionDrawingSurface
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

Examples

See the code example in Composition native interoperation with DirectX and Direct2D.

Properties

AlphaMode AlphaMode AlphaMode AlphaMode

The alpha mode of the drawing surface.

Comment Comment Comment Comment

A string to associate with the CompositionObject.

(Inherited from CompositionObject)
Compositor Compositor Compositor Compositor

The Compositor used to create this CompositionObject.

(Inherited from CompositionObject)
Dispatcher Dispatcher Dispatcher Dispatcher

The dispatcher for the CompositionObject.

(Inherited from CompositionObject)
DispatcherQueue DispatcherQueue DispatcherQueue DispatcherQueue

Gets the DispatcherQueue for the CompostionObject.

(Inherited from CompositionObject)
ImplicitAnimations ImplicitAnimations ImplicitAnimations ImplicitAnimations

The collection of implicit animations attached to this object.

(Inherited from CompositionObject)
PixelFormat PixelFormat PixelFormat PixelFormat

The pixel format of the drawing surface.

Properties Properties Properties Properties

The collection of properties associated with the CompositionObject.

(Inherited from CompositionObject)
Size Size Size Size

The size of the drawing surface.

SizeInt32 SizeInt32 SizeInt32 SizeInt32

The size of the drawing surface.

Methods

Close Close Close Close

Closes the CompositionObject and releases system resources.

(Inherited from CompositionObject)
Resize(SizeInt32) Resize(SizeInt32) Resize(SizeInt32) Resize(SizeInt32)

Resizes the drawing surface to the specified size.

Scroll(PointInt32) Scroll(PointInt32) Scroll(PointInt32) Scroll(PointInt32)

Scrolls the drawing surface.

Scroll(PointInt32, RectInt32) Scroll(PointInt32, RectInt32) Scroll(PointInt32, RectInt32) Scroll(PointInt32, RectInt32)

Scrolls the drawing surface.

ScrollWithClip(PointInt32, RectInt32) ScrollWithClip(PointInt32, RectInt32) ScrollWithClip(PointInt32, RectInt32) ScrollWithClip(PointInt32, RectInt32)

Scrolls the drawing surface using the specified clip rectangle.

ScrollWithClip(PointInt32, RectInt32, RectInt32) ScrollWithClip(PointInt32, RectInt32, RectInt32) ScrollWithClip(PointInt32, RectInt32, RectInt32) ScrollWithClip(PointInt32, RectInt32, RectInt32)

Scrolls the drawing surface with the specified clip rectangle.

StartAnimation(String,CompositionAnimation) StartAnimation(String,CompositionAnimation) StartAnimation(String,CompositionAnimation) StartAnimation(String,CompositionAnimation)

Connects an animation with the specified property of the object and starts the animation.

(Inherited from CompositionObject)
StartAnimationGroup(ICompositionAnimationBase) StartAnimationGroup(ICompositionAnimationBase) StartAnimationGroup(ICompositionAnimationBase) StartAnimationGroup(ICompositionAnimationBase)

Starts an animation group.

The StartAnimationGroup method on CompositionObject lets you start CompositionAnimationGroup. All the animations in the group will be started at the same time on the object.

(Inherited from CompositionObject)
StopAnimation(String) StopAnimation(String) StopAnimation(String) StopAnimation(String)

Disconnects an animation from the specified property and stops the animation.

(Inherited from CompositionObject)
StopAnimationGroup(ICompositionAnimationBase) StopAnimationGroup(ICompositionAnimationBase) StopAnimationGroup(ICompositionAnimationBase) StopAnimationGroup(ICompositionAnimationBase)

Stops an animation group.

(Inherited from CompositionObject)
TryGetAnimationController(String) TryGetAnimationController(String) TryGetAnimationController(String) TryGetAnimationController(String)

Returns an AnimationController for the animation running on the specified property.

(Inherited from CompositionObject)

See Also