CreateTexture Method (IRenderContext2D)
Creates a Texture with the specified width, height and format. This texture may be modified, and drawn repeatedly using %DrawTexture(ITexture2D, Rect)%
Syntax
ITexture2D CreateTexture( int width, int height, TextureFormats textureFormat )
Parameters
- width
- The width of the texture in pixels
- height
- The height of the texture in pixels
- textureFormat
- The texture format.
Return Value
A new Texture2D object, which must be disposed when no longer required
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also