Click or drag to resize
AB4D logo

WpfMaterialCreateTexture2D Method

Overload List
 NameDescription
Public methodStatic memberCreateTexture2D(DXDevice, BitmapSource) CreateTexture2D creates a 2D Texture from the specified WPF BitmapSource and returns a ShaderResourceView for the texture. User must dispose the returned ShaderResourceView when it is not used any more to prevent memory leak.
Public methodStatic memberCreateTexture2D(DXDevice, BitmapSource, TextureInfo) CreateTexture2D creates a 2D Texture from the specified WPF BitmapSource and returns a ShaderResourceView for the texture. User must dispose the returned ShaderResourceView when it is not used any more to prevent memory leak.
Top
See Also