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
)

Parameters

fileName
Type: System..::.String
File name.
key
Type: System.Drawing..::.Color
Color to replace the transparent black or Empty for deactivating it.

Return Value

Created Texture texture.

Exceptions

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

See Also