CreateTextureFromFile Method (, String, Int32, Int32, Int32, , , )
Microsoft Robotics Studio
Create texture from file
Namespace: Microsoft.Robotics.Simulation.Engine
Assembly: SimulationEngine (in SimulationEngine.dll)
Version: 1.5.507.0
Syntax
public Texture CreateTextureFromFile(
GraphicsDevice device,
string fileName,
int width,
int height,
int mipLevels,
ResourceUsage usage,
SurfaceFormat format,
ResourceManagementMode mode
)
'Declaration
Public Function CreateTextureFromFile ( _
device As GraphicsDevice, _
fileName As String, _
width As Integer, _
height As Integer, _
mipLevels As Integer, _
usage As ResourceUsage, _
format As SurfaceFormat, _
mode As ResourceManagementMode _
) As Texture
public:
Texture^ CreateTextureFromFile (
GraphicsDevice^ device,
String^ fileName,
int width,
int height,
int mipLevels,
ResourceUsage usage,
SurfaceFormat format,
ResourceManagementMode mode
)
Parameters
- device
GraphicsDevice
- fileName
String
- width
Int32
- height
Int32
- mipLevels
Int32
- usage
ResourceUsage
- format
SurfaceFormat
- mode
ResourceManagementMode
Return Value
See Also
ResourceCache Class
Microsoft.Robotics.Simulation.Engine Namespace