Click or drag to resize
AB4D logo

D3D11ImageSource Class

A D3D11ImageSource class can be used as Image's Source and can displays Direct3D 11 content. Note that the part of the window that is assigned to D3D11ImageSource can be used only for DirectX and cannot show any WPF content over the control. If you want to show WPF content on top of DirectX content, than DXImage or D3D11ImageSource should be used.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.WindowsFreezable
        System.Windows.Media.AnimationAnimatable
          System.Windows.MediaImageSource
            System.Windows.InteropD3DImage
              Ab3d.DirectX.ControlsD3D11ImageSource

Namespace: Ab3d.DirectX.Controls
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public class D3D11ImageSource : D3DImage, 
	IDisposable

The D3D11ImageSource type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyDpiX DpiX
Public propertyDpiY DpiY
Public propertyIsBackBufferSet True when the DirectX 9 surface is created
Top
Methods
 NameDescription
Public methodClearBackBuffer ClearBackBuffer clears the D3DImage's BackBuffer
Public methodDispose Dispose
Public methodInitializeBackBuffer InitializeBackBuffer uses the DirectX 11 back buffer and creates a DirectX 9 SharedResource from it. The SharedResources can than be used in the InvalidateBackBuffer method to pass the DirectX 11 back buffer to WPF.
Public methodInvalidateBackBuffer InvalidateBackBuffer marks the back buffer as dirty and sends it to WPF.
Top
Fields
 NameDescription
Public fieldStatic memberTryLockDuration Duration for how long the D3DImage waits to acquire a lock on the D3DImage's back buffer.
Top
See Also