Creates new Texture texture from the file.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
Parameters
- fileName
- Type: System..::.String
File name.
- key
- Type: System.Drawing..::.Color
Color to replace the transparent black or Empty for deactivating it.
- autoMipMap
- Type: System..::.Boolean
Defines whether the MIP maps automatic generation will be enabled.
Return Value
Created Texture texture.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | fileName is nullNothingnullptra null reference (Nothing in Visual Basic). |