D3DImage.CopyBackBuffer 方法

定义

创建 D3DImage 的软件副本。

protected public:
 virtual System::Windows::Media::Imaging::BitmapSource ^ CopyBackBuffer();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected internal virtual System.Windows.Media.Imaging.BitmapSource CopyBackBuffer ();
protected internal virtual System.Windows.Media.Imaging.BitmapSource CopyBackBuffer ();
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
abstract member CopyBackBuffer : unit -> System.Windows.Media.Imaging.BitmapSource
override this.CopyBackBuffer : unit -> System.Windows.Media.Imaging.BitmapSource
abstract member CopyBackBuffer : unit -> System.Windows.Media.Imaging.BitmapSource
override this.CopyBackBuffer : unit -> System.Windows.Media.Imaging.BitmapSource
Protected Friend Overridable Function CopyBackBuffer () As BitmapSource

返回

BitmapSource

一个 BitmapSource,它是后台缓冲区当前状态的软件副本;否则,如果无法读取后台缓冲区,则为 null

属性

注解

该方法 CopyBackBuffer 由打印系统和 RenderTargetBitmap 类等客户端调用。

(可选)重写 CopyBackBuffer 方法以实现自定义逻辑并返回其他 BitmapSource方法。 例如,如果默认CopyBackBuffer实现返回null,则可以返回占位符BitmapSource

适用于

另请参阅