Click or drag to resize
AB4D logo

DXImage Methods

The DXImage type exposes the following members.

Methods
 NameDescription
Public methodDispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodInitializeDXScene InitializeDXScene method must be called to connect the DXImage control to the DXScene that will render the DirectX scene. The method must be called after the DXScene is initialized and before the scene is rendered.
Public methodInvalidateD3DImage Refresh method updates the underlying D3D11ImageSource with marking it dirty so WPF will update it.
Public methodRecreateD3DImageSource RecreateD3DImageSource disposes the current D3DImageSource and creates a new instance of D3DImageSource. This method is internally called when the primary monitor is changed. This prevents crashes of WPF rendering thread. User may also manually call this method to prevent some similar problems (please also contact support@ab4d.com in such cases).
Public methodSetDpiScale Sets the Dpi scale that will be used by this DXImage
Top
See Also