Creates new Texture texture from the file.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public static Texture CreateTexture(
	string fileName,
	Color key,
	bool autoMipMap
)

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

ExceptionCondition
System..::.ArgumentNullException fileName is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also