Compositor Klasse

Definition

Verwaltet die Sitzung zwischen einer Anwendung und dem Systemkompositorprozess.

Die Compositor-Klasse erstellt eine instance des Compositor für die Anwendung, die als Factory für eine Vielzahl von Typen im Windows.UI.Composition-Namespace verwendet werden kann, die die visuelle Ebene, das Effektsystem und das Animationssystem umfassen. Die Compositor-Klasse verwaltet auch die Lebensdauer von Objekten, die von der Factory erstellt wurden.

public ref class Compositor sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class Compositor final : IClosable
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(131072, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
class Compositor final : IClosable
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class Compositor : System.IDisposable
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(131072, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public sealed class Compositor : System.IDisposable
Public NotInheritable Class Compositor
Implements IDisposable
Vererbung
Object Platform::Object IInspectable Compositor
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Der Compositor synchronisiert implizit Änderungen, die an zugeordneten Visuals vorgenommen wurden, um sicherzustellen, dass sie transaktional angewendet werden.

Weitere Informationen finden Sie unter Übersicht über die Kompositionsoberfläche und Übersicht über visuelle Struktur für Kompositionen .

Neue Instanzen von Compositor müssen in einem Thread erstellt werden, der über einen CoreDispatcher verfügt.

Versionsverlauf

Windows-Version SDK-Version Mehrwert
1607 14393 CreateAmbientLight
1607 14393 CreateAnimationGroup
1607 14393 CreateBackdropBrush
1607 14393 CreateDistantLight
1607 14393 CreateDropShadow
1607 14393 CreateImplicitAnimationCollection
1607 14393 CreateLayerVisual
1607 14393 CreateMaskBrush
1607 14393 CreateNineGridBrush
1607 14393 CreatePointLight
1607 14393 CreateSpotLight
1607 14393 CreateStepEasingFunction
1607 14393 CreateStepEasingFunction(Int32)
1703 15063 CreateHostBackdropBrush
1709 16299 CreateColorGradientStop
1709 16299 CreateColorGradientStop(Single,Color)
1709 16299 CreateLinearGradientBrush
1709 16299 CreateSpringScalarAnimation
1709 16299 CreateSpringVector2Animation
1709 16299 CreateSpringVector3Animation
1803 17134 Kommentar
1803 17134 CreateBounceScalarAnimation
1803 17134 CreateBounceVector2Animation
1803 17134 CreateBounceVector3Animation
1803 17134 CreateContainerShape
1803 17134 CreateEllipseGeometry
1803 17134 CreateLineGeometry
1803 17134 CreatePathGeometry
1803 17134 CreatePathGeometry(CompositionPath)
1803 17134 CreatePathKeyFrameAnimation
1803 17134 CreateRectangleGeometry
1803 17134 CreateRoundedRectangleGeometry
1803 17134 CreateShapeVisual
1803 17134 CreateSpriteShape
1803 17134 CreateSpriteShape(CompositionGeometry)
1803 17134 CreateViewBox
1803 17134 GlobalPlaybackRate
1803 17134 MaxGlobalPlaybackRate
1803 17134 MinGlobalPlaybackRate
1803 17134 RequestCommitAsync
1809 17763 CreateBooleanKeyFrameAnimation
1809 17763 CreateGeometricClip
1809 17763 CreateGeometricClip(CompositionGeometry)
1809 17763 CreateRedirectVisual
1809 17763 CreateRedirectVisual(Visual)
1903 18362 CreateProjectedShadow
1903 18362 CreateProjectedShadowCaster
1903 18362 CreateProjectedShadowReceiver
1903 18362 CreateRadialGradientBrush
1903 18362 CreateVisualSurface

Konstruktoren

Compositor()

Erstellt eine instance von Compositor.

Eigenschaften

Comment

Ruft eine Zeichenfolge ab, die dem Compositor zugeordnet werden soll, oder legt diese fest.

DefaultGraphicsDevice

Ruft das Standardgrafikgerät ab.

DispatcherQueue

Ruft die Verteilerwarteschlange für diesen Compositor ab.

GlobalPlaybackRate

Ruft die Rate ab, mit der Animationen für alle Keyframeanimationen wiedergegeben werden, die von diesem Komppositor erstellt werden, oder legt diese fest.

MaxGlobalPlaybackRate

Ruft die maximal zulässige Wiedergaberate für alle Keyframeanimationen ab, die von diesem Compositor erstellt werden.

MinGlobalPlaybackRate

Ruft die minimale zulässige Wiedergaberate für alle Keyframeanimationen ab, die von diesem Komppositor erstellt werden.

Methoden

Close()

Schließt das Compositor-Objekt und gibt Systemressourcen frei.

CreateAmbientLight()

Erstellt eine instance von AmbientLight.

CreateAnimationController()

Erstellt eine instance von AnimationController.

CreateAnimationGroup()

Erstellt eine instance von CompositionAnimationGroup.

CreateAnimationPropertyInfo()

Erstellt eine instance von AnimationPropertyInfo.

CreateBackdropBrush()

Erstellt eine instance von CompositionBackdropBrush.

CreateBooleanKeyFrameAnimation()

Erstellt eine instance booleanKeyFrameAnimation.

CreateBounceScalarAnimation()

Erstellt eine instance von BounceScalarNaturalMotionAnimation.

CreateBounceVector2Animation()

Erstellt eine instance von BounceVector2NaturalMotionAnimation.

CreateBounceVector3Animation()

Erstellt eine instance von BounceVector3NaturalMotionAnimation.

CreateColorBrush()

Erstellt eine instance von CompositionColorBrush.

CreateColorBrush(Color)

Erstellt eine instance von CompositionColorBrush unter Verwendung der angegebenen Farbe.

CreateColorGradientStop()

Erstellt eine instance von CompositionColorGradientStop.

CreateColorGradientStop(Single, Color)

Erstellt eine instance von CompositionColorGradientStop mit dem angegebenen Offset und der angegebenen Farbe.

CreateColorKeyFrameAnimation()

Erstellt eine instance von ColorKeyFrameAnimation.

CreateContainerShape()

Erstellt eine instance von CompositionContainerShape.

CreateContainerVisual()

Erstellt eine instance von ContainerVisual.

CreateCubicBezierEasingFunction(Vector2, Vector2)

Erstellt eine instance von CubicBezierEasingFunction.

CreateDistantLight()

Erstellt eine instance von DistantLight.

CreateDropShadow()

Erstellt eine instance von DropShadow.

CreateEffectFactory(IGraphicsEffect)

Erstellt eine instance von CompositionEffectFactory.

CreateEffectFactory(IGraphicsEffect, IIterable<String>)

Erstellt eine instance von CompositionEffectFactory, die Effektparameter animierbar sein sollen.

CreateEffectVisual()

Erstellt eine instance von EffectVisual.

CreateEllipseGeometry()

Erstellt eine instance von CompositionEllipseGeometry.

CreateExpressionAnimation()

Erstellt eine instance von ExpressionAnimation.

CreateExpressionAnimation(String)

Erstellt eine instance von ExpressionAnimation.

CreateGeometricClip()

Erstellt eine instance von CompositionGeometricClip.

CreateGeometricClip(CompositionGeometry)

Erstellt eine instance von CompositionGeometricClip unter Verwendung der angegebenen geometrie.

CreateHostBackdropBrush()

Erstellt eine instance von CompositionBackdropBrush, die Stichproben aus dem Bereich hinter dem Visual vor dem Zeichnen des Fensters enthält.

CreateImageVisual()

Erstellt eine instance von ImageVisual.

CreateImplicitAnimationCollection()

Erstellt eine instance von ImplicitAnimationCollection.

CreateInsetClip()

Erstellt eine instance von InsetClip.

CreateInsetClip(Single, Single, Single, Single)

Erstellt eine instance von InsetClip.

CreateLayerVisual()

Erstellt eine instance von LayerVisual.

CreateLinearEasingFunction()

Erstellt eine instance von LinearEasingFunction.

CreateLinearGradientBrush()

Erstellt eine instance von CompositionLinearGradientBrush.

CreateLineGeometry()

Erstellt eine instance von CompositionLineGeometry.

CreateMaskBrush()

Erstellt eine instance von CompositionMaskBrush.

CreateNineGridBrush()

Erstellt eine instance von CompositionNineGridBrush.

CreatePathGeometry()

Erstellt eine instance von CompositionPathGeometry.

CreatePathGeometry(CompositionPath)

Erstellt eine instance von CompositionPathGeometry unter Verwendung des angegebenen Pfads.

CreatePathKeyFrameAnimation()

Erstellt eine instance von PathKeyFrameAnimation.

CreatePointLight()

Erstellt eine instance von PointLight.

CreateProjectedShadow()

Erstellt eine instance von CompositionProjectedShadow.

CreateProjectedShadowCaster()

Erstellt eine instance von CompositionProjectedShadowCaster.

CreateProjectedShadowReceiver()

Erstellt eine instance von CompositionProjectedShadowReceiver.

CreatePropertySet()

Erstellt eine instance von CompositionPropertySet.

CreateQuaternionKeyFrameAnimation()

Erstellt eine instance von QuaternionKeyFrameAnimation.

CreateRadialGradientBrush()

Erstellt eine instance von CompositionRadialGradientBrush.

CreateRectangleClip()

Erstellt eine instance von RectangleClip mit Standardwerten.

CreateRectangleClip(Single, Single, Single, Single)

Erstellt eine instance von RectangleClip mit den angegebenen Edgewerten.

CreateRectangleClip(Single, Single, Single, Single, Vector2, Vector2, Vector2, Vector2)

Erstellt eine instance von RectangleClip mit den angegebenen Edge- und Eckenradiuswerten.

CreateRectangleGeometry()

Erstellt eine instance von CompositionRectangleGeometry.

CreateRedirectVisual()

Erstellt eine instance von RedirectVisual.

CreateRedirectVisual(Visual)

Erstellt eine instance von RedirectVisual unter Verwendung der angegebenen Quelle.

CreateRoundedRectangleGeometry()

Erstellt eine instance von CompositionRoundedRectangleGeometry.

CreateScalarKeyFrameAnimation()

Erstellt eine instance von ScalarKeyFrameAnimation.

CreateScopedBatch(CompositionBatchTypes)

Erstellt eine instance von CompositionScopedBatch.

CreateShapeVisual()

Erstellt eine instance von ShapeVisual.

CreateSolidColorVisual()

Erstellt eine instance von SolidColorVisual.

CreateSpotLight()

Erstellt eine instance von SpotLight.

CreateSpringScalarAnimation()

Erstellt eine instance von SpringScalarNaturalMotionAnimation.

CreateSpringVector2Animation()

Erstellt eine instance von SpringVector2NaturalMotionAnimation.

CreateSpringVector3Animation()

Erstellt eine instance springVector3NaturalMotionAnimation.

CreateSpriteShape()

Erstellt eine instance von CompositionSpriteShape.

CreateSpriteShape(CompositionGeometry)

Erstellt eine instance von CompositionSpriteShape unter Verwendung der angegebenen Geometrie.

CreateSpriteVisual()

Erstellt eine instance von SpriteVisual.

CreateStepEasingFunction()

Erstellt eine instance von StepEasingFunction.

CreateStepEasingFunction(Int32)

Erstellt eine instance von StepEasingFunction mit der angegebenen Schrittanzahl.

CreateSurfaceBrush()

Erstellt eine instance von CompositionSurfaceBrush.

CreateSurfaceBrush(ICompositionSurface)

Erstellt eine instance von CompositionSurfaceBrush unter Verwendung der angegebenen Kompositionsoberfläche.

CreateTargetForCurrentView()

Erstellt ein CompositionTarget für die aktuelle Ansicht.

CreateVector2KeyFrameAnimation()

Erstellt eine instance von Vector2KeyFrameAnimation.

CreateVector3KeyFrameAnimation()

Erstellt eine instance von Vector3KeyFrameAnimation.

CreateVector4KeyFrameAnimation()

Erstellt eine instance von Vector4KeyFrameAnimation.

CreateViewBox()

Erstellt eine instance von CompositionViewBox.

CreateVisualSurface()

Erstellt eine instance von CompositionVisualSurface.

Dispose()

Führt anwendungsspezifische Aufgaben durch, die mit der Freigabe, der Zurückgabe oder dem Zurücksetzen von nicht verwalteten Ressourcen zusammenhängen.

GetCommitBatch(CompositionBatchTypes)

Ruft einen Commitbatch für den aktuellen Commitzyklus ab.

RequestCommitAsync()

Versucht, einen Commitzyklus ansynchron zu initiieren.

TryCreateBlurredWallpaperBackdropBrush()

Erstellt eine instance, CompositionBackdropBrush die das verschwommene Hintergrundbild hinter dem aktuellen Visual zeichnet.

Gilt für:

Weitere Informationen