Share via


VirtualSurfaceImageSource 类

定义

扩展 SurfaceImageSource 以支持当内容可能大于屏幕上的内容,并且必须虚拟化内容才能以最佳方式呈现时的方案。

public ref class VirtualSurfaceImageSource sealed : SurfaceImageSource
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.Media.Imaging.IVirtualSurfaceImageSourceFactory, 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 VirtualSurfaceImageSource final : SurfaceImageSource
/// [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)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.Media.Imaging.IVirtualSurfaceImageSourceFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VirtualSurfaceImageSource final : SurfaceImageSource
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.Media.Imaging.IVirtualSurfaceImageSourceFactory), 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 VirtualSurfaceImageSource : SurfaceImageSource
[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)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.Media.Imaging.IVirtualSurfaceImageSourceFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VirtualSurfaceImageSource : SurfaceImageSource
Public NotInheritable Class VirtualSurfaceImageSource
Inherits SurfaceImageSource
继承
Object Platform::Object IInspectable DependencyObject ImageSource SurfaceImageSource VirtualSurfaceImageSource
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

此类具有其他 API,但这些 API 用于 Microsoft DirectX 互操作,不是本文档中其他说明的常规应用编程模型的一部分。 例如,从 Microsoft DirectX 端,可以调用 BeginDraw。 有关如何绘制到 VirtualSurfaceImageSource(包括示例代码)的详细信息,请参阅 DirectX 和 XAML 互操作

构造函数

VirtualSurfaceImageSource(Int32, Int32)

初始化 VirtualSurfaceImageSource 类的新实例,指定绘图区的大小。

VirtualSurfaceImageSource(Int32, Int32, Boolean)

初始化 VirtualSurfaceImageSource 类的新实例,指定绘图区域的大小以及是否使用 alpha 透明度呈现的首选项。

属性

Dispatcher

获取与此对象关联的 CoreDispatcherCoreDispatcher 表示可以访问 UI 线程上的 DependencyObject 的工具,即使代码是由非 UI 线程启动的。

(继承自 DependencyObject)

方法

ClearValue(DependencyProperty)

清除依赖属性的本地值。

(继承自 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

返回为依赖属性建立的任何基值,该基值适用于动画未处于活动状态的情况。

(继承自 DependencyObject)
GetValue(DependencyProperty)

DependencyObject 返回依赖属性的当前有效值。

(继承自 DependencyObject)
ReadLocalValue(DependencyProperty)

如果设置了本地值,则返回依赖属性的本地值。

(继承自 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

注册通知函数,用于侦听此 DependencyObject 实例上对特定 DependencyProperty 的更改。

(继承自 DependencyObject)
SetValue(DependencyProperty, Object)

设置 DependencyObject 上依赖属性的本地值。

(继承自 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消以前通过调用 RegisterPropertyChangedCallback 注册的更改通知。

(继承自 DependencyObject)

适用于

另请参阅