Texture2D Class Members
The following tables list the members exposed by Texture2D.
Public Constructors
| Name | Description | |
|---|---|---|
![]() | Texture2D Constructor | Initializes a new instance of the Texture2D class. |
Public Properties
| Name | Description | |
|---|---|---|
![]() | Height | Gets the height of the texture |
![]() | TextureFormat | Gets the TextureFormat |
![]() | Width | Gets the width of the texture |
Public Methods
| Name | Description | |
|---|---|---|
![]() | Dispose | Overloaded. Releases unmanaged and - optionally - managed resources. |
![]() ![]() | FromArgb | Creates a Texture2D from ARGB format uint array |
![]() ![]() | FromBytes | Creates a Texture2D from byte array |
![]() ![]() | FromWriteableBitmap | Creates a Texture2D from WPF System.Windows.Media.Imaging.WriteableBitmap |
![]() | WritePixels | Overloaded. Writes float[] data into the texture. The TextureFormat must be a floating point format |
Protected Methods
Extension Methods
| Name | Description | |
|---|---|---|
![]() | DebugFinalizer<T> | Notifies that finalizer has been invoked |
![]() | SafeDispose | Checks for null and if not null, calls Dispose |
![]() | ToDoubleArray | Overloaded. Converts an System.IComparable array to double array |
![]() | ToEnumerable<T> | Yields a single item, converting it to System.Collections.IEnumerable. |
![]() | ToStringArray2D<T> |
See Also





