Texture Constructor (String, IntRect)

SFML.Net

Texture Constructor (String, IntRect)
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,
	IntRect area
)
Public Sub New ( 
	filename As String,
	area As IntRect
)
public:
Texture(
	String^ filename, 
	IntRect area
)
new : 
        filename : string * 
        area : IntRect -> Texture

Parameters

filename
Type: SystemString
Path of the image file to load
area
Type: SFML.GraphicsIntRect
Area of the image to load
Exceptions
ExceptionCondition
LoadingFailedException
See Also