Texture Constructor (String)

SFML.Net

Texture Constructor (String)
Construct the texture from a file

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public Texture(
	string filename
)
Public Sub New ( 
	filename As String
)
public:
Texture(
	String^ filename
)
new : 
        filename : string -> Texture

Parameters

filename
Type: SystemString
Path of the image file to load
Exceptions
ExceptionCondition
LoadingFailedException
See Also