Creates new Texture texture from the resource resource.

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

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static Texture CreateTexture(
	IXResourceLocation resource,
	Color key,
	bool autoMipMap
)

Parameters

resource
Type: SGP.XUtility..::.IXResourceLocation
The IXResourceLocation source defining the mesh location.
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 resource is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also